[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tortoisesvn-dev
Subject:    Re: rename is not atomic (& is confusing)
From:       "Milen A. Radev" <milen () radev ! net>
Date:       2007-03-29 16:40:10
Message-ID: 32c009ea0703290940i78799824g51b406d0b951d0de () mail ! gmail ! com
[Download RAW message or body]

On 29/03/07, Jason Sachs <jsachs@dekaresearch.com> wrote:
> (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.

Plese look here -
http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.move.html and
here - http://subversion.tigris.org/issues/show_bug.cgi?id=898 .

> 
> 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.

That's because you could have made some modifications in the file
after the rename - this way they would not be lost.

> 
> 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.

You make your change and then commit it. This way you could make a
bunch of changes and then commit them all at once atomically.


-- 
Milen A. Radev

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic