Bookmarks in core?
David Soria Parra
dsp at php.net
Wed Dec 1 21:14:49 CST 2010
On 2010-11-29, Matt Mackall <mpm at selenic.com> wrote:
>> - This might be a secondary topic, but I think it'd be great to have
>> remote-tracking bookmarks. I.e., each entry in hg paths gets a
>> bookmark, and pulling from a repo moves that bookmark forward. I think
>> it'd be great to have this on by default; it would make it easier to
>> deal with (or put off) merges involving large numbers of changesets,
>> since you could easily identify what head each repo is at.
> Interesting. Can we get a proposal including how these branches get
I would propose remote/<pathname>/<bookmarkname>. This will implicitly add
namespaces to bookmarks. We can think about handling remote/* special.
The advantage of using a naming scheme like that is that we do not need to modify
any commands. The drawback for sure is that we might forbid to create bookmarks
with a remote/ prefix. If someone is concerned that the separator is the standard
dir separator, I think we can use : instead. I would prefer /, as this is exactly
the refspec format for git's remote tracking branches. If we pick this, it might be
easier for people to switch between bookmarks and git branches (and a lot of people are using
both vcs at the same time).
I'll try to get a patch ready once I finished the first series that moves bookmarks into core.
More information about the Mercurial-devel