[PATCH 7 of 7 path-configs] ui.paths: accept multiple arguments to getpath()
Sean Farley
sean.michael.farley at gmail.com
Sun Feb 8 15:46:05 CST 2015
Gregory Szorc writes:
> Please drop this one patch and only this one patch from the series. I'm
> still implementing features built on top of this API and the more I
> implement, the more I'm learning about what kind of API we really need for
> getpath(). I originally intended this *names support to be used for
> "default" lookup. I now feel that default lookup should be baked into this
> API, rather than names passed by callers. This is a bit hard to explain
> without code. The code is coming...
Here is something else I'd like to get into core:
- given a remote repo object (or a string!) return the alias
For example, given 'https://sean@smf.io/hg' return 'smf' (which is a
path alias in my hgrc)
- compare a scheme with a uri
If I define 'smf://' to be 'https://sean@smf.io/' then I'd want a way to
compare 'smf://hg' == 'https://sean@smf.io/hg'
More information about the Mercurial-devel
mailing list