iffy behaviour with SVN external and "svn up -r"
From: Justin Mason <jm_at_jmason.org>
Date: 2006-03-01 13:00:55 CET
Hi --
We in Apache SpamAssassin have run into what appears to be a bit
We have our main trunk at
Both are in the same SVN repository -- just at different paths.
Here are the issues we've just noticed:
---------------------------------------------------------------------------
SVN UPDATE:
Let's say I want to pin down the checkout to a specific revision using
: exit=1 Wed Mar 1 09:34:11 GMT 2006; cd /home/jm/ftp/spamassassin
Fetching external item into 'rulesrc'
Updated to revision 381595.
Note how the main directory is correctly brought to r381595, but the svn
However if I issue an explicit "svn up -r" for that dir, it fixes it:
: exit=0 Wed Mar 1 09:34:59 GMT 2006; cd /home/jm/ftp/spamassassin
I can understand that it may be tricky to implicitly perform the "svn update
- (a) detect when the same repository is in use, and automatically use the -r
- or (b) warn more prominently that this is the case, since I've been failing
---------------------------------------------------------------------------
SVN EXPORT:
An alternative to "svn update" is to export a copy of the repository
: jm 46...; svn export --non-interactive -r 381955 http://svn.apache.org/repos/asf/spamassassin/trunk out
Fetching external item into 'out/rulesrc'
Exported revision 381955.
Note those last lines! The external has been exported -- but not at the
By performing a follow-up "svn export" it can be fixed:
: jm 49...; rm -rf out/rulesrc; svn export --non-interactive -r 381955 http://svn.apache.org/repos/asf/spamassassin/rules/trunk out/rulesrc
In other words, explicitly running a separate "svn export" works around
Again, more warning -- or implicit fixing -- or both -- would really help
Cheers for SVN! Loving it apart from that ;)
--j.
---------------------------------------------------------------------
|
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.