This is an archive of the discontinued Mercurial Phabricator instance.

remotenames: add functionality to hoist remotebookmarks
ClosedPublic

Authored by pulkit on Mar 11 2018, 9:16 AM.

Details

Summary

This patch adds the functionality to hoist remotebookmarks to the top level
namespace. The peer of which bookmarks should be hoisted can be set using
remotenames.hoistedpeer config option. Only bookmarks can be hoisted. If a
hoisted name and local bookmark exists of the same name, the local bookmark
takes precedence.

While I was here, I documented the default values of two other remotenames
config options.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Mar 11 2018, 9:16 AM
durin42 accepted this revision as: durin42.Mar 12 2018, 5:39 PM
durin42 added a subscriber: durin42.

Seems fine, I'd like to hear what others think?

I'm not sure I'm crazy about "hoistedname" I guess.

pulkit updated this revision to Diff 7101.Mar 19 2018, 4:35 AM

A gentle reminder to get this series reviewed.

I like the functionality. I'm not crazy about "hoist." I think if the config option were named hoistedpeer, that would be a bit better. If it is just hoist, it sounds like it should be a boolean.

hoistedname appearing in hg log output doesn't feel right. It seems to want a multiple word label. If we kept "hoist," I suppose that would be hoisted name. But I'm not crazy about the naming. But I can't think of better terminology right now. I want to incorporate "primary" or "main" somehow. But that terminology doesn't seem to work in the context of an hg log label.

With those minor fixups, I'll queue this. I think we can bikeshed the naming later. We can always alias the old config option if we rename things.

pulkit edited the summary of this revision. (Show Details)Mar 22 2018, 3:34 AM
pulkit updated this revision to Diff 7247.
indygreg accepted this revision.Mar 23 2018, 2:41 PM

I still don't have a good suggestion for a better name. We can always change terminology later.

This revision is now accepted and ready to land.Mar 23 2018, 2:41 PM
This revision was automatically updated to reflect the committed changes.