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

Unexpected "update" behavior

From: Bryan Lyman <bryan-lyman_at_leavitt.com>
Date: Mon, 15 Jun 2009 15:44:07 -0600

Version and Platform:

TortoiseSVN 1.6.2, Build 16344 - 32 Bit , 2009/05/09 13:46:29

Visual Studio C# .net code text

 

Actual Situation:

Programmer A is coding working on the same file as Programmer B.
Programmer A commits his changes as revision 4. Programmer B finishes
what he is working on and wants to merge his changes to those made by
Programmer A. Before committing his changes, Programmer B "Updates" from
the repository and finds that he has some conflicts which must be
resolved during the merge. Programmer B resolves all conflicts and marks
the files as resolved; he then decides he doesn't want to commit his
changes just yet, so he continues working. Later Programmer B decides it
is time to finally commit, but he would like to do another update to
make sure his new changes don't conflict with the same revision as
before (Programmer A has not checked in any new changes). The update
reports that he is already updated to the current revision and there
were no conflicts, so he determines that it is safe to commit his files
and does so as revision 5.

Programmer A has been working all the while and decides to get the
latest changes made by Programmer B; he does so and gets no merge
conflicts. When he opens his code he notices that his changes appear to
be new changes made by Programmer B merged with what appears to be
Revision 3. To recover specific files he must go into the log history
and revert those files from revision 5 to 4 and have Programmer B try
manually merge what changes he can remember from revision 5.

 

Observed Behavior:

The basic behavior should be that when Programmer B updated to revision
4, it would attempt to merge revision 4 with his working copy. But it
appears that only files not in conflict updated to this revision while
those that used Diff to resolve conflicts retrieved an older revision to
merge with the current working copy. Also, using update after it has
already been updated once is expected to re-compare files that are
currently modified. Instead it appears that once the files are marked as
having been updated to revision 4, they will never again compare because
they are marked as already having been updated to revision 4.

 

Expected Behavior:

An update run more than once should again compare any files which are
currently being modified to make sure that any new changes since the
last update are not in conflict with the current revision.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2362306

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-06-16 07:00:45 CEST

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