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

svn mv "breaks" annotate?

From: Jason Winnebeck <jpwasp_at_rit.edu>
Date: 2007-07-09 21:41:06 CEST

I restructured a repository from a "normal" layout to a
"trunk/tags/branches" layout, but now annotate shows as if the entire
file was updated by myself on almost all files.

The repository was just converted from SourceSafe, using the excellent
vss2svn script. That process seemed to work as good as expected. So
then, I wanted to immediately restructure the projects to have a
"trunk/tags/branches" format. However, this seems to have broken
annotate somehow. What happens is that I am shown as the latest author
on all lines with the revision number being the number of the move, on
almost all files. But **some** files show the annotate as expected. Also
the log of the move showed a lot of A, D, and M statuses, and when
committing it took a long time for "sending file data." The size of the
transaction in the FSFS is 6MB, but I thought copies were "free" in SVN.
This is why I am thinking I might have done something wrong.

The two interesting points are that the last line of the files show a
different author, and that the only changes in the files were in the
$Revision$ keyword expansion.

I used the following shell script on the root directory of each project
in the repository:

cd "$1"

svn mkdir trunk

for x in *; do
    if [ "$x" != "trunk" ]; then
        svn mv "$x" trunk;
    fi
done

svn mkdir branches
svn mkdir tags

My goal was to move all files at the root into a new directory trunk,
then create an empty branches and tags directory (I decided not to
import labels).

One of the reasons to switch from VSS was to have working annotate
support. Not having the history proper on the files is defeating the
point of the huge effort to convert the VSS history rather than just
importing the "tip."

Jason Winnebeck

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 9 21:40:47 2007

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.