This appears to either be a bug or a feature that's less than obvious to
me.
Running Subversion 1.3.0 on Linux - Red Hat AS release 4.
In a directory on the trunk, created 3 files:
- part1.txt
- part2.txt
- part3.txt
Committed and created a tag...
Then, in the same directory on the trunk:
- removed part1.txt
- added part4.txt
Committed and created another tag.
Now, when I use "svn diff" for the two tags...
1) diff older and newer tags.
svn diff .../tags/rel_20070124_1835 .../tags/rel_20070124_1842
Index: part1.txt
===================================================================
--- part1.txt (.../rel_20070124_1835) (revision 1661)
+++ part1.txt (.../rel_20070124_1842) (revision 1661)
@@ -1 +0,0 @@
-This is part 1 of portlet2a
...
Index: part4.txt
===================================================================
--- part4.txt (.../rel_20070124_1835) (revision 0)
+++ part4.txt (.../rel_20070124_1842) (revision 1661)
@@ -0,0 +1,2 @@
+This is part 4 of portlet2a
+It replaces part1, which was deleted.
= = = = = = = = = = = = = = = = = = = =
2) diff newer and older tags (reversed order of diff).
svn diff .../tags/rel_20070124_1842 .../tags/rel_20070124_1835
Index: part4.txt
===================================================================
--- part4.txt (.../rel_20070124_1842) (revision 1661)
+++ part4.txt (.../rel_20070124_1835) (revision 1661)
@@ -1,2 +0,0 @@
-This is part 4 of portlet2a
-It replaces part1, which was deleted.
Index: part1.txt
===================================================================
--- part1.txt (.../rel_20070124_1842) (revision 0)
+++ part1.txt (.../rel_20070124_1835) (revision 1661)
@@ -0,0 +1 @@
+This is part 1 of portlet2a
Index: part2.txt
My questions:
1) What's up with "revision 0" ?
It only shows when the file in question doesn't exist in the first tag
compared.
When the file doesn't exist in the second tag, shouldn't it be shown as
"revision 0"?
2) What's up with "revision 1661"?
This is the latest rev number in the repo. It's not when either tag was
committed. Each time I run a diff, the latest rev number shows up.
Shouldn't these be something more useful, like the revs when each tag
was committed (if the file exists with that tag)?
Comments?
Thanks,
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 25 23:46:27 2007