This is the mail archive of the gcc@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: git mirror at gcc.gnu.org


On 06/20/2009 04:38 AM, Bernie Innocenti wrote:
On 06/20/09 04:59, Jason Merrill wrote:

Any thoughts on what to do about the non-branch directories under
branches/?  The complete set is ARM apple csl dead gcj ibm ix86 suse
ubuntu.  The only solution I can think of would be to specifically
enumerate which branches we want to mirror in git with separate git-svn
fetch lines rather than use the branches= line.

Don't we want to mirror all branches? Enumerating them all would be a lot of work...

I was thinking to do that programatically. i.e.


git config --unset svn-remote.svn.branches
for f in `svn ls svn://gcc.gnu.org/svn/gcc/branches|egrep -v '^(ARM|apple|csl|dead|gcj|ibm|ix86|redhat|suse|ubuntu)/'`; do
f=${f%/}
git config --get-all svn-remote.svn.fetch |
fgrep "branches/$f:" > /dev/null ||
git config --add svn-remote.svn.fetch branches/$f:refs/remotes/$f
done
for d in ARM apple csl dead gcj ibm ix86 redhat suse ubuntu; do
for f in `svn ls svn://gcc.gnu.org/svn/gcc/branches/$d`; do
f=$d/${f%/}
git config --get-all svn-remote.svn.fetch |
fgrep "branches/$f:" > /dev/null ||
git config --add svn-remote.svn.fetch branches/$f:refs/remotes/$f
done
done


Perhaps we could report this missing feature to the git-svn folks and
ask them to fix it for us?

I'm not sure it's possible in general to tell whether a particular directory in SVN is a branch or not.


Jason


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