chg and the schemes extension
Marc Simpson
marc at 0branch.com
Mon Feb 10 15:35:10 UTC 2020
Hi all,
I encountered some unexpected behaviour with chg this morning:
It seems that once the command server is running, schemes added to
~/.hgrc are not recognised by chg. For example, given the following
minimal configuration:
[extensions]
schemes =
[schemes]
foo = http://foo.example.com/repos/
hg and chg output expand the foo scheme equivalently (this is the
first chg run, so the command server is started):
$ hg debugexpandscheme foo://baz
http://foo.example.com/repos/baz
$ chg debugexpandscheme foo://baz
http://foo.example.com/repos/baz
Subsequently adding a second scheme to ~/.hgrc demonstrates the issue:
[schemes]
foo = http://foo.example.com/repos/
bar = http://bar.example.com/repos/
where 'bar' is expanded as expected by hg, but not chg:
$ hg debugexpandscheme bar://baz
http://bar.example.com/repos/baz
$ chg debugexpandscheme bar://baz
bar://baz
Is this known behaviour (and working as designed)? The above was
tested in 5.3.
Thanks,
Marc
More information about the Mercurial
mailing list