Creating a branch other than master using bzr-git

Stephen J. Turnbull stephen at xemacs.org
Tue Nov 25 08:27:32 GMT 2008


Jelmer Vernooij writes:

 > > Thanks for the information. Seems like the branch could be appended onto
 > > the URL somehow to indicate what branch. I've seen things like:
 > 
 > > /repos/some_project.git/edge
 > 
 > > Where "edge" is a branch within the git repository.

 > The syntax used here should probably be consistent with that used for
 > multiple branches in the same directory for bazaar itself (which
 > hasn't been discussed yet). Using slashes seems like a bad idea to me
 > though; it's ambiguous (what if you have a nested fs branch or a file with
 > the same name?)

I agree.  I doubt this is well-thought out even for git, since until
recently git didn't support submodules at all.

I would use an URL-based notation, which has some potential for
avoiding file system encoding lossage (but that's a hard problem).

I kinda like URL fragment notation (http://repos/myrepo#mybranch) for
this, but it might be better to use query notation
(http://repos/myrepo?branch=mybranch), especially since this can be
generalized to other refs (tags, revnos) in a way that allows them to
be given different treatment if appropriate.  (No, I have nothing in
particular in mind.)




More information about the bazaar mailing list