Changeset View
Changeset View
Standalone View
Standalone View
tests/test-share-safe.t
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | Check that config of the source repository is also loaded | ||||
[1] | [1] | ||||
$ echo "[ui]" >> ../source/.hg/hgrc | $ echo "[ui]" >> ../source/.hg/hgrc | ||||
$ echo "curses=true" >> ../source/.hg/hgrc | $ echo "curses=true" >> ../source/.hg/hgrc | ||||
$ hg showconfig ui.curses | $ hg showconfig ui.curses | ||||
true | true | ||||
Test that extensions of source repository are also loaded | |||||
$ hg debugextensions | |||||
share | |||||
$ hg extdiff -p echo | |||||
hg: unknown command 'extdiff' | |||||
'extdiff' is provided by the following extension: | |||||
extdiff command to allow external programs to compare revisions | |||||
(use 'hg help extensions' for information on enabling extensions) | |||||
[255] | |||||
$ echo "[extensions]" >> ../source/.hg/hgrc | |||||
$ echo "extdiff=" >> ../source/.hg/hgrc | |||||
$ hg debugextensions -R ../source | |||||
extdiff | |||||
share | |||||
$ hg extdiff -R ../source -p echo | |||||
BROKEN: the command below does not work but debugextensions says that extension | |||||
is loaded | |||||
$ hg debugextensions | |||||
extdiff | |||||
share | |||||
BROKEN: extdiff command should work here | |||||
$ hg extdiff -p echo | |||||
hg: unknown command 'extdiff' | |||||
'extdiff' is provided by the following extension: | |||||
extdiff command to allow external programs to compare revisions | |||||
(use 'hg help extensions' for information on enabling extensions) | |||||
[255] | |||||
However, local .hg/hgrc should override the config set by share source | However, local .hg/hgrc should override the config set by share source | ||||
$ echo "[ui]" >> .hg/hgrc | $ echo "[ui]" >> .hg/hgrc | ||||
$ echo "curses=false" >> .hg/hgrc | $ echo "curses=false" >> .hg/hgrc | ||||
$ hg showconfig ui.curses | $ hg showconfig ui.curses | ||||
false | false | ||||
$ HGEDITOR=cat hg config --shared | $ HGEDITOR=cat hg config --shared | ||||
[ui] | [ui] | ||||
curses=true | curses=true | ||||
[extensions] | |||||
extdiff= | |||||
$ HGEDITOR=cat hg config --local | $ HGEDITOR=cat hg config --local | ||||
[ui] | [ui] | ||||
curses=false | curses=false | ||||
Testing that hooks set in source repository also runs in shared repo | Testing that hooks set in source repository also runs in shared repo | ||||
$ cd ../source | $ cd ../source | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |