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

Rename in Subversion

From: Srilakshmanan, Lakshman <lakshman.srilakshmanan_at_police.vic.gov.au>
Date: 2007-12-20 05:59:15 CET

Hi All,

When I did a rename of a file and committed it, I found the original
file was still available.

Further investigation revealed that a rename is treated as two
operation, first operation deletes the file while the second operation
copies a new file from the original file. Even though it's two
operations, the object id remains the same hence considered as "true
rename".

The issue is that when you rename a file and commit the renamed file,
the *** original file *** delete operation is not performed and
therefore that file is still available and appears to be under a **
different ** object ID. How do I know ? a log of the original file does
not traverse the tree.

We cannot commit the original file delete operation because the file
does not exist. The only way around is to commit the entire directory
(and uncheck the files you don't want to commit, if you are using a GUI
client like TortoiseSVN).

Is this a known issue or a user error :)

Thanks
Lakshman

================================================================================================
EMAIL DISCLAIMER

This email and any attachments are confidential. They may also be subject to copyright.

If you are not an intended recipient of this email please immediately contact us by replying
to this email and then delete this email.

You must not read, use, copy, retain, forward or disclose this email or any attachment.

We do not accept any liability arising from or in connection with unauthorised use or disclosure
of the information contained in this email or any attachment.

We make reasonable efforts to protect against computer viruses but we do not accept liability
for any liability, loss or damage caused by any computer virus contained in this email.
================================================================================================
Received on Thu Dec 20 05:59:15 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.