sapling/tests/test-root.t
Jared Bosco 476e71b1cc commands: add root --shared to print the shared root of the current directory.
Summary: When the `--shared` flag is passed to `hg root` i.e. `hg root --shared` - display the shared root of the current directory.

Reviewed By: quark-zju

Differential Revision: D15363157

fbshipit-source-id: 6e6c13f27c624502a83edc1046ae3d4de227b6b8
2019-05-16 11:10:29 -07:00

15 lines
214 B
Perl

make shared repo
$ enable share
$ newrepo repo1
$ echo a > a
$ hg commit -q -A -m 'init'
$ cd $TESTTMP
$ hg share -q repo1 repo2
$ cd repo2
test repo --shared
$ hg root --shared
$TESTTMP/repo1