I hope its okay to copy this to Subversion list, as it has veered away
from cmake ...
Alan said (on Cmake list):
> take a concrete but simple example, suppose you have five
> files which all
> have 3 possibilities (1,2,3) for the revision number. IOW,
> each file changed
> for each revision. Then using svn update --revision you can
> create 3^5 = 243
> different combinations of revision numbers for the various
> source files in
> your source tree, and svnversion will identify all such
> different source
> trees identically.
I expected that sort of thing with CVS, I thought it worked differently
in SVN where the number is more related to the whole project than the
individual file. But I stand corrected.
An actual test demonstrates that you are correct, svnversion 0:6 is
displayed if one of the files is back-updated to 4, and no special flag
is specified in svnversion output. See console log below.
David said (on Cmake list):
>also verify that "svn status" gives you *empty*
>output.
Actually , 'svn status' also produces empty output in this case (where
a file has been back-updated) So it is not obvious that there's any
difference, as Alan suggested orignally.
Thanks for the headsup!
Robert
[rcatwood testproj]$ svnversion
0:6
[rcatwood testproj]$ cat *
$Id: FileA.txt 6 2007-10-05 15:50:26Z rcatwood $
This is file A. Third (after propset) revision.
$Id: FileB.txt 6 2007-10-05 15:50:26Z rcatwood $
This is file B. Third (after propset) revision.
$Id: FileC.txt 6 2007-10-05 15:50:26Z rcatwood $
This is file C. Third (after propset) revision.
$Id: FileD.txt 6 2007-10-05 15:50:26Z rcatwood $
This is file D. Third (after propset) revision.
$Id: FileE.txt 6 2007-10-05 15:50:26Z rcatwood $
This is file E. Third (after propset) revision.
[rcatwood testproj]$
[rcatwood testproj]$ svn up -r 4 FileC.txt
U FileC.txt
Updated to revision 4.
[rcatwood testproj]$ svnversion
0:6
[rcatwood testproj]$ cat *
$Id: FileA.txt 6 2007-10-05 15:50:26Z rcatwood $
This is file A. Third (after propset) revision.
$Id: FileB.txt 6 2007-10-05 15:50:26Z rcatwood $
This is file B. Third (after propset) revision.
$Id: FileC.txt 4 2007-10-05 15:49:14Z rcatwood $
This is file C. First (after propset) revision.
$Id: FileD.txt 6 2007-10-05 15:50:26Z rcatwood $
This is file D. Third (after propset) revision.
$Id: FileE.txt 6 2007-10-05 15:50:26Z rcatwood $
This is file E. Third (after propset) revision.
[rcatwood testproj]$
[rcatwood testproj]$ svn status
[rcatwood testproj]$
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 5 18:10:15 2007