Re: Feature Request: svn upgrade [--check][--check-current]
From: Daniel Shahaf <danielsh_at_apache.org>
Date: Fri, 2 Dec 2016 17:11:04 +0000
Marc Pawlowsky wrote on Fri, Dec 02, 2016 at 11:50:14 -0500:
The incantation is:
format_number=`head -n1 .svn/format`
This inspects .svn directly, and as such is *not* guaranteed to be
See SVN_WC__VERSION (in wc.h) for the format-number-to-minor-version map.
> For future releases it would be nice if there was a command to display
Couldn't you run, say, 'svn info >/dev/null' and see whether it gives
% ./tools/dev/which-error.py E155036
Going through your scenarios:
> svn upgrade --check-current .
'svn info' will exit 0.
> svn upgrade --check-current .
'svn info' will report E155036 (and 'svn upgrade' will succeed).
> svn upgrade --check-current .
Only happens in corner cases (e.g.,
I'm not sure whether we have today a way to distinguish "non-current,
>
To be clear, I'm not opposed to adding such functionality; I'm simply
Cheers,
Daniel
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.