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

Replacing files with move

From: Gavin Lambert <gavinl_at_compacsort.com>
Date: 2005-11-04 06:46:49 CET

Say I've got two versioned files, "file" and "file2". If I then execute
the following:

  svn rm file
  svn mv file2 file
  svn commit

... I get an error stating that I have to commit the delete first. I
don't want to commit the delete first, as it would put the repository in
an unsafe state.

By contrast, if the replacement file isn't already versioned (so now we
have "file" in SVN and "file2" not in SVN):

  svn rm file
  mv file2 file
  svn add file
  svn commit

... and this all works fine, and it correctly recognises that the new
"file" is a replacement of the old "file" and not a modification to it.

This seems inconsistent to me. Shouldn't the first one work just like
the second?

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 4 06:48:20 2005

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.