You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Messer, Nathan" <Na...@Teradyne.com> on 2006/03/16 11:21:12 UTC

Admin only move / handling manual moves

Hi,

    I'm looking for a way to tell subversion that I have moved a file
from one place to another, after I've done it.

 

I'm NOT looking for a way for subversion to figure out what's moved.

 

I saw this message: http://svn.haxx.se/dev/archive-2003-07/0076.shtml
which implied that it should be possible with "svn move -force", however
I tried that and it didn't work, complaining that the source file didn't
exist.

 

I'm looking for something either available in the subversion client, or
accessible by some programming language (preferably Java), or even a
third party library.

 

I'm looking for something like JavaSVN's "doVirtualCopy" method, however
I can't use that due to its license.

 

Thanks for any help,

 

Nathan Messer


Re: Admin only move / handling manual moves

Posted by Nico Kadel-Garcia <nk...@comcast.net>.
A subversion move is two operations: first, it copies the old file to the new location along with its logs (basically by changing the information in the database about where that file is). Then it deletes the old file (by telling the database it's not at that old location anymore). But the information about the file is still there: the "copy" operation can be done from older versions of the file, which should still be in the subversion database and can be referred to by revision number.

Can you look up whether the file is still there in the subversion server itself, maybe with old revisions? You should be able to copy *that* into place, even without the current file available.

----- Original Message ----- 
  From: Messer, Nathan 
  To: users@subversion.tigris.org 
  Sent: Thursday, March 16, 2006 6:21 AM
  Subject: Admin only move / handling manual moves


  Hi,

      I'm looking for a way to tell subversion that I have moved a file from one place to another, after I've done it.

   

  I'm NOT looking for a way for subversion to figure out what's moved.

   

  I saw this message: http://svn.haxx.se/dev/archive-2003-07/0076.shtml which implied that it should be possible with "svn move -force", however I tried that and it didn't work, complaining that the source file didn't exist.

   

  I'm looking for something either available in the subversion client, or accessible by some programming language (preferably Java), or even a third party library.

   

  I'm looking for something like JavaSVN's "doVirtualCopy" method, however I can't use that due to its license.

   

  Thanks for any help,

   

  Nathan Messer