mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
476e71b1cc
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
15 lines
214 B
Perl
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
|