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

Re: Multiple users modifying the same file from the Repo Browser

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 22 Aug 2011 19:13:44 +0200

On 22.08.2011 17:21, Todd Nelson wrote:
> Stefan,
>
> Maybe it's a flaw in the process that I am using. Here are the steps
> that I am taking to simulate to users editing the same text file:
>
> 1. Open two instances of the repo-browser and right-click on the same
> file and choose Edit
> 2. Make changes in both instances of the open file.
> 3. Close the editor for instance 1 of the file. This will close the
> file give me the commit dialog and the commit will succeed.
> 4. Close the editor for instance 2 of the file. This will close the
> file and give me the commit dialog. The commit will fail with the
> following message:
>
> Command: Commit
> Modified: C:\Tmp\trunk.svn00b.tmp\Another_File2.txt
> Error: Commit failed (details follow):
> Error: File or directory 'Another_File2.txt' is out of date; try
> updating
> Error: resource out of date; try updating
> Completed!:
>
> 5. Click OK and the "Command failed - Updated needed dialog is now
> displayed, with two options Update and Cancel. Neither one of those
> options will re-option file. The only way to commit the changes is to
> find the temporary working copy in C:/Tmp and make the appropriate
> changes and attempt the commit again.

That's what I tried. And clicking the OK button will update the file and
reopen the commit dialog (if not deactivated explicitly in the advanced
settings).

> I agree that added the needs-lock property would eliminate the issue
> from happening in the first place, but I can guarantee we will have
> users running into this scenario.

Please check your settings: if you've deactivated the "OutOfDateRetry"
setting, then of course the commit dialog won't reopen.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2827684
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-08-22 19:14:25 CEST

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

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