This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: how to create a new GCC branch?
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Gary Funck <gary at intrepid dot com>
- Cc: Gcc Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 28 Feb 2010 19:51:51 -0800
- Subject: Re: how to create a new GCC branch?
- References: <20100301033502.GX11245@intrepid.com>
On Sun, Feb 28, 2010 at 7:35 PM, Gary Funck <gary@intrepid.com> wrote:
> #!/bin/sh -xe
> GCCUSER=gfunck
> BRANCH=gupc
> GCCREPO="svn+ssh://${GCCUSER}@gcc.gnu.org/svn/gcc"
> # Create new branch.
> svn copy -m "creating ${BRANCH} branch" . \
> Â Â Â "${GCCREPO}/branches/${BRANCH}"
> # Record the branch point.
> svn copy -r"${BRANCHPOINT}" -m "record ${BRANCH} branch point" \
> Â Â Â Â Â"${GCCREPO}/trunk" \
> Â Â Â Â Â"${GCCREPO}/tags/${BRANCH}-branchpoint"
You really don't need a tag for your branch as you can find it as
svnmerge.py will the information already recorded with the copy.
> # Initialize svnmerge
> svnmerge.py init
So you really just need to do:
#!/bin/sh -xe
GCCUSER=gfunck
BRANCH=gupc
GCCREPO="svn+ssh://${GCCUSER}@gcc.gnu.org/svn/gcc"
svn copy -m "creating ${BRANCH} branch" "${GCCREPO}/trunk" \
"${GCCREPO}/branches/${BRANCH}"
svn co "${GCCREPO}/branches/${BRANCH}"
svnmerge.py init
And really you should not the last svn switch as when people might be
testing your branch, they will most likely be testing every language.
It is also a good idea in general practice to test all languages so
you don't end up with C front-end calls in the middle-end.
--- CUT ---
Thanks,
Andrew Pinski