[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

historical diffs on moved files

From: Peter M. Murray <pete_at_quantrix.com>
Date: 2004-07-29 16:27:42 CEST

Greetings Subversion Folks!

I am new to Subversion (experienced with CVS) and working on making the
transition to "subversion-think". We have run into a question and would
appreciate your input on it:

It seems to us that one of the very useful aspects of Subversion is that
it retains file history across moves. So if I have a file in my project
/some/dir1/file.java and i move it to some/dir2/file.java, I can still
examine the history of that file since the day I originally added it to
the repository. Suppose "svn log file.java" looks like this:

r5 | pete | ...
moved to new location

r4 | bcabana | ...
edited some stuff

r3 | bcabana | ...
added some stuff

r2 | pete | ....
created file

It seems like we shoudl be able to investigate changes to file.java
across that history. However, if I want to see the changes to that
file between r3 and r4 - "svn diff -r3:4 file.java" I get a message
like: "svn: file://<path-to-repos>/some/dir2/file.java was not found in
the repository at revision 3". Now, I understand conceptually that the
file didn't exist at that location at that revision, but it seems that
subversion knows where the (ancestor?) file did exist at that time and
what i really want is to see the changes to that file between those
revisions - wherever the file existed at the time. The
--notice-ancestry flag seems like it should help us here, but it doesn't
seem to produce anything different in this case. Does that make sense?

We are considering moving to Subversion for our project in part because
we are undertaking a significant refactoring of the layout of our java
packages and would like to preserve file history across that
rearrangement. We imported the repository with cvs2svn without a hitch
- >4900 commits and a db of > 1.9 GB (with all the log files). Works
like a champ.

Subversion ROCKS!

Cheers,

pete
peter m. murray
pete@quantrix.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 29 16:27:59 2004

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.