This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to create a new GCC branch?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]