This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: merging trunk into MELT branch: svn merge or svnmerge merge?
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Sat, 01 Mar 2008 07:42:19 +1100
- Subject: Re: merging trunk into MELT branch: svn merge or svnmerge merge?
- References: <47C86C94.6070701@starynkevitch.net>
> What is the best tool to use, svnmerge or the merge subcommand of svn?
I have never used svn merge, but instead learned to use svnmerge right
from the outset, from advice given to me at the time.
> I'm quite confused actually. I tried to use svnmerge but I tend to think
> it didn't do what I expect.
>
> Ideally either a reference or the full sequence of commands to run would
> be helpful (assuming I can restart from pristine MELT branch & trunk)
When you create your branch, you need to run svnmerge init. This will
create an svn property at the top-level of your tree, which you check
in.
>From time to time, you will run svnmerge merge. The svnmerge script
knows which trunk revisions are present on your branch and will bring
across any that are missing. You then commit these. (Make sure you
have no local changes in your tree before doing this, otherwise you will
end up committing them, too.)
It's really quite easy once you get the hang of it!
Cheers, Ben