mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 21:48:36 +03:00
75a8173a10
Summary: Add `#chg-compatible` to 572 tests that seem to pass with chg enabled. This should make them run faster. Reviewed By: xavierd Differential Revision: D18870507 fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
41 lines
900 B
Perl
41 lines
900 B
Perl
#chg-compatible
|
|
|
|
> echo "[extensions]" >> $HGRCPATH
|
|
> echo "remotenames=" >> $HGRCPATH
|
|
|
|
Init a repo
|
|
|
|
$ hg init pathsrepo
|
|
$ cd pathsrepo
|
|
|
|
Check that a new path can be added
|
|
|
|
$ hg paths -a yellowbrickroad yellowbrickroad
|
|
$ hg paths -a stairwaytoheaven stairwaytoheaven
|
|
$ hg paths
|
|
stairwaytoheaven = $TESTTMP/pathsrepo/stairwaytoheaven
|
|
yellowbrickroad = $TESTTMP/pathsrepo/yellowbrickroad
|
|
|
|
Check that a repo can be deleted
|
|
|
|
$ hg paths -d yellowbrickroad
|
|
$ hg paths
|
|
stairwaytoheaven = $TESTTMP/pathsrepo/stairwaytoheaven
|
|
|
|
Delete .hg/hgrc fil
|
|
|
|
$ rm .hg/hgrc
|
|
|
|
Check that a path cannot be deleted when no .hg/hgrc file exists
|
|
|
|
$ hg paths -d stairwaytoheaven
|
|
abort: could not find hgrc file
|
|
[255]
|
|
|
|
Check that a path can be added when no .hg/hgrc file exists
|
|
|
|
$ hg paths -a yellowbrickroad yellowbrickroad
|
|
$ hg paths
|
|
yellowbrickroad = $TESTTMP/pathsrepo/yellowbrickroad
|
|
|