You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Seth Daniel <su...@sethdaniel.org> on 2005/05/06 18:21:05 UTC
merging when target has moved files
Hello,
I have a repository with a single project. This project has a trunk and
a single branch named B01. The branch was made at revision 32. Since the
branch was made some modifications have been made to a file named F
on trunk. Also, in the branch, the file named F was svn moved to NF.
In the past I haven't had to deal with moved files. The files in the
branch had the same names as on the trunk. In the past when I have
wanted to merge the trunk with the branch I would do something like this
(using the above example):
cd B01_working_copy/
svn merge -r 32:HEAD http://site.com/svn/project1/trunk
and everything worked as expected.
But now, with the moved files, the changes to F in the trunk are not
merged with NF in the branch. Instead, a file named F is created in the
branch and NF is unchanged. I would expect/hope that F would be merged
with NF.
I have a transcript of what I'm talking about, but it is rather lengthy
and I was hoping someone would look at the above example and would
instantly know what I was doing wrong.
I should point out that I was reading the subversion book, specifically,
http://svnbook.red-bean.com/en/1.1/ch04s04.html#svn-ch-4-sect-4.1 when I
came across this problem.
Thanks.
I am using svn v1.1.4.
--
seth / @sethdaniel.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: merging when target has moved files
Posted by Seth Daniel <su...@sethdaniel.org>.
On Fri, May 06, 2005 at 07:56:10PM -0500, Ben Collins-Sussman wrote:
> On May 6, 2005, at 1:21 PM, Seth Daniel wrote:
> >I have a repository with a single project. This project has a trunk
> >and a single branch named B01. The branch was made at revision 32.
> >Since the branch was made some modifications have been made to a file
> >named F on trunk. Also, in the branch, the file named F was svn
> >moved to NF.
[..snip...]
> Subversion doesn't have moves, it has copies & deletes. Alas, this
> is currently expected behavior. When the server sends a "move" to a
> client, it just adds a file and deletes a file, rather than really
> moving things. We hope to fix this soon, it's been discussed as part
> of our 'true moves' discussion on the dev@ list.
I suppose I actually knew this but I just hadn't made the connection to
merges for some reason.
Okay, so now I'm wondering what people do when they need to do a large
repository reorganization while simultaneously allowing development to
go on on the trunk.
I guess I could simply do the reorganization on the trunk. That would
simplify things. Maybe.
In the trunk + reorg branch case I suppose the only real thing I can do
is keep track of the files that are changed on trunk and what the new
file name is on the reorg branch and write a script that can merge the
trunk file to the new reorg branch file. Then when I am done with the
reorg I can run the script to sync up the branch to trunk and then I can
merge the branch to trunk.
Well, here's to 'real moves'. I can't wait. :o)
--
seth / @sethdaniel.org
I told my kids, "Someday, you'll have kids of your own." One of them
said, "So will you."
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: merging when target has moved files
Posted by Ben Collins-Sussman <su...@collab.net>.
On May 6, 2005, at 1:21 PM, Seth Daniel wrote:
> Hello,
>
> I have a repository with a single project. This project has a
> trunk and
> a single branch named B01. The branch was made at revision 32.
> Since the
> branch was made some modifications have been made to a file named F
> on trunk. Also, in the branch, the file named F was svn moved to NF.
>
> In the past I haven't had to deal with moved files. The files in the
> branch had the same names as on the trunk. In the past when I have
> wanted to merge the trunk with the branch I would do something like
> this
> (using the above example):
>
> cd B01_working_copy/
> svn merge -r 32:HEAD http://site.com/svn/project1/trunk
>
> and everything worked as expected.
>
> But now, with the moved files, the changes to F in the trunk are not
> merged with NF in the branch. Instead, a file named F is created
> in the
> branch and NF is unchanged. I would expect/hope that F would be
> merged
> with NF.
>
> I have a transcript of what I'm talking about, but it is rather
> lengthy
> and I was hoping someone would look at the above example and would
> instantly know what I was doing wrong.
>
Subversion doesn't have moves, it has copies & deletes. Alas, this
is currently expected behavior. When the server sends a "move" to a
client, it just adds a file and deletes a file, rather than really
moving things. We hope to fix this soon, it's been discussed as part
of our 'true moves' discussion on the dev@ list.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org