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

Re: Interesting use case of svn renames

From: vishwajeet singh <dextrous85_at_gmail.com>
Date: Thu, 21 Aug 2008 20:31:28 +0530

Frankly saying there is no substitution to communication between people in a
team working together.

On Thu, Aug 21, 2008 at 8:27 PM, rjk1408 <rohanjoseph_at_gmail.com> wrote:

>
> This is an interesting use case which has left development kind of broken
> at
> where I work and I hope someone can help me.
>
> User A was working on a file foo in the trunk. He wanted to edit this file,
> but since many others used this file, he wrongly decided, to rename this
> file to bar and then create a new file foo with the contents of bar (and
> few
> of his changes) and add it to revision control
>
> svn mv foo bar
> touch foo #edit foo, add contents of bar to foo
> svn add foo
>
> Next, User B working on a branch, unaware of the changes on the trunk,
> decided to merge changes from the trunk into his branch. Naturally, the
> add's and deletes followed. But he was OK with it because he wasn't working
> on this particular file. The logs do show an 'R' against the original foo
> file, showing that it was replaced by the new file bar.
>
> Now, when it came for the time for him to re-integrate his branch into the
> trunk - he ran the merge command from the exact directory(not the top level
> of the working copy) in which these renamed files reside and he got this
> error
>
> svn: Working copy path 'path-to-the-bar-file' does not exist in repository
>
> Now, User B finds he cannot merge his work back in. What should he do?
>
> 1. Does completely removing the questionable file and re-adding it help?
> 2. Blocking the revision in which the rename happened won't help because it
> was coupled with few other changes.
>
> What can User B do?
>
> --
> View this message in context:
> http://www.nabble.com/Interesting-use-case-of-svn-renames-tp19090042p19090042.html
> Sent from the Subversion Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>

-- 
Cheers,
Vishwajeet
http://www.singhvishwajeet.com
Received on 2008-08-21 17:01:58 CEST

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.