Path Pattern 1.1.0
Marcin Kasperski
Marcin.Kasperski at mekk.waw.pl
Sat Jan 7 19:15:15 UTC 2017
I just pushed new Path Pattern release. Crucial changes
1. (partially bugfix) paths without any {variable-part} were not
working. After this fix, one can use Path Pattern also to catalogue
remote paths in central .hgrc. Documentation example:
[path_pattern]
official_hgstable.local = ~/tracked/hg-stable
official_hgstable.remote = http://selenic.com/repo/hg-stable
official_hgstable.alias = official
official_thg.local = ~/tracked/tortoise-hg
official_thg.remote = http://bitbucket.org/tortoisehg/thg/
official_thg.alias = official
# â¦
This gives me "hg pull official" in ~/tracked/hg-stable and
~/tracked/tortoise-hg. In simple single-machine case it does
not make much sense (more typing than adding an entry in repo-level
[paths]), but is handy for three reasons:
- gives me one place to review, edit and fix such urls
- (as I sync my ~/.hgrc over many machines) it frees me
from adding this alias everywhere
- I can now drop such tracked repo and easily recreate it
by
hg init tracked/hg-stable
hg --cwd tracked/hg-stable pull official
2. Extension started detecting and handling cases where more than one
pattern matches (one pattern defines what production means in ~/src,
another defines the same alias inside ~/src/web, etc). More specific
pattern should win. See docs for more details.
3. Documentation was noticeably updated.
More details as usual on:
https://bitbucket.org/Mekk/mercurial-path_pattern
More information about the Mercurial
mailing list