You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Gavin Lambert <ga...@compacsort.com> on 2005/11/04 05:46:49 UTC

Replacing files with move

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