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

rename is not atomic (& is confusing)

From: Jason Sachs <jsachs_at_dekaresearch.com>
Date: 2007-03-29 17:22:39 CEST

(TSVN 1.4.3 build 8645 on my Windows 2000 PC.)

Rename seems to not be atomic. If I do TortoiseSVN->Rename, what it seems to do is to locally rename a file, and just update the status. This shows the renamed file as "added". If I commit the "added" file, the repository then has 2 files (original plus the newly renamed file); there is no way to commit the file as deleted unless I commit the directory.

If I decide, "whoops, I didn't want to rename after all", and I update the directory from the repository, it doesn't restore the renamed file. If I do "revert" instead, it leaves the newly renamed file as blank (no icon overlay), then I have to manually rename the file back and revert it again.

This is very confusing. I would suggest some possibilities:
(1) In the rename dialog box, add a "Commit now" checkbox (and maybe a warning indicator if the contents have changed in the repository as well)
(2) as an alternative to the above, when you rename a file locally, add an option to do the corresponding rename (copy+delete) in the repository as well. (without committing any changes to the file itself)
(3) No matter what, please document how we are supposed to rename files in TSVN! I have no idea what the proper sequence of actions is that I should be taking.
----
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by e-mail administrator@dekaresearch.com and destroy the original message. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Mar 29 18:00:49 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.