Thoughts on remotenames additions to remotebranches
David Soria Parra
dsp at experimentalworks.net
Thu Jan 15 11:42:58 CST 2015
Ryan McElroy <rm at fb.com> writes:
> There are a few other small features that Durham thought would be useful as well:
> * Allowing certain remote bookmarks to always be visible (eg, master/@/trunk remote bookmarks)
> * Prevent local bookmarks from interfering with remote bookmark names (eg, prevent '/' in bookmark names)
> * Use bundle2 to prevent race conditions with listkey after pushes
I might a bit of an unpopular opinion here, but I prefer a unique prefix
for remote bookmarks that can be forbidden (e.g. remote/mpm/@). This is
less restrictive than forbidding '/'. In particular given that a lot
of blog articles and general dvcs documentation use / as a delimiter
for topic branches (including myself), e.g: dsp/cache. Having a unique
prefix can be used to uniquly identify a remote bookmark if it has the
same name as a local one.
1. I reate mpm/@ locally
2. I pull from mpm
3. I checkout mpm/@, mercurial warns me this is not unique but goes
for the local one first.
4. I can specify //mpm/@ to uniquly identify a remote bookmark or
/mpm/@ to uniquly idetnfiy the local one.
- David
More information about the Mercurial-devel
mailing list