The command "svn cat" doesn't always seem to work when a revision has
been moved.
For example, say I have the following directory structure:
trunk
mystuff
foo.txt
bar.txt
I then do some code reorganization so that we have:
trunk
src
foo.txt
bar.txt
Now if I do a log on http://myserver/trunk/src/foo.txt I would see a log
like this:
------------------------------------------------------------------------
r29 | rayj | 2004-09-27 17:32:41 -0700 (Mon, 27 Sep 2004) | 2 lines
code reorg
------------------------------------------------------------------------
r13 | rayj | 2004-09-17 09:58:28 -0700 (Fri, 17 Sep 2004) | 3 lines
couple of bug fixes
added other repositories
------------------------------------------------------------------------
r11 | rayj | 2004-09-16 17:17:31 -0700 (Thu, 16 Sep 2004) | 2 lines
initial import
------------------------------------------------------------------------
Now if I do a command of "svn cat http://myserver/trunk/src/foo.txt" I
get the contents as I would expect.
However, if I do a "svn cat -r 13 http://myserver/trunk/src/foo.txt" I
get nothing.
At one level I think I understand why it doesn't return anything. The
file did not exist in that location in that revision. But from another
point of view it doesn't make sense. "svn log" reports a historical
revision of that file exists but how would I know where it came from?
How can I get the old contents in some systematic way?
Ray
Received on Wed Oct 20 18:55:19 2004