Git workflow in Mercurial
Matt Mackall
mpm at selenic.com
Fri Dec 12 20:56:13 UTC 2008
On Fri, 2008-12-12 at 20:23 +0100, Isaac Jurado wrote:
> On Fri, Dec 12, 2008 at 7:50 PM, Leslie P. Polzer
> <sky at viridian-project.de> wrote:
> >
> >> git lets you do that easily, plus it lets you actually share these
> >> topic branches between people. You can say "I want to pull changes from
> >> Leslie's topic branch X into my local branch Y", which is very useful,
> >> plus it lets me keep all these in a single tree in a single
> >> directory. There might be a way to do that with hg (named branches), but
> >> I think it isn't as smooth as the git way.
> >
> > How would we approach this best with hg? Named branches, local branches,
> > pbranch?
>
> If you didn't care about sharing, the bookmarks extensions should be a
> nice starting. Actually, you can share changesets but bookmarks would
> not be updated correctly. An uncertain wire protocol extension would
> solve such problem.
The only thing you can't share with bookmarks is the bookmark name
itself. Which is trivially dealt with by doing:
hg pull -r bookmark-a path-to-collaborator && hg bookmark -r tip
bookmark-a
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list