mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +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
43 lines
958 B
Perl
43 lines
958 B
Perl
#chg-compatible
|
|
|
|
$ setconfig extensions.treemanifest=!
|
|
|
|
no-check-code
|
|
$ . "$TESTDIR/library.sh"
|
|
|
|
$ hginit master
|
|
$ cd master
|
|
$ cat >> .hg/hgrc <<EOF
|
|
> [remotefilelog]
|
|
> server=True
|
|
> EOF
|
|
$ echo x > x
|
|
$ echo y > y
|
|
$ echo z > z
|
|
$ hg commit -qAm xy
|
|
|
|
$ cd ..
|
|
|
|
$ hgcloneshallow ssh://user@dummy/master shallow -q
|
|
3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
|
|
$ cd shallow
|
|
|
|
Verify error message when no cachepath specified
|
|
$ hg up -q null
|
|
$ cp $HGRCPATH $HGRCPATH.bak
|
|
$ sed -i.bak -n "/cachepath/!p" $HGRCPATH
|
|
$ hg up tip
|
|
abort: could not find config option remotefilelog.cachepath
|
|
[255]
|
|
$ mv $HGRCPATH.bak $HGRCPATH
|
|
|
|
Verify error message when no fallback specified
|
|
|
|
$ hg up -q null
|
|
$ rm .hg/hgrc
|
|
$ clearcache
|
|
$ hg up tip
|
|
abort: no remotefilelog server configured - is your .hg/hgrc trusted?
|
|
3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
|
|
[255]
|