mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
b27a46c987
Summary: This is a big bulk of generally almost-obvious fixes to the moved tests. Mostly these fixes have to do with correct importing of the actual extensions. Depends on D6675329 Test Plan: - ./run-tests.py fails less after this commit - see further commits for more test fixes Reviewers: #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D6675344
36 lines
850 B
Perl
36 lines
850 B
Perl
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
|
$ export PYTHONPATH
|
|
|
|
$ . "$TESTDIR/library.sh"
|
|
|
|
# create a repo to behave as the server
|
|
|
|
$ hginit server
|
|
$ cd server
|
|
$ echo x > x
|
|
$ hg commit -qAm x
|
|
|
|
# enable the remoteid extension
|
|
|
|
$ cat >> .hg/hgrc <<EOF
|
|
> [extensions]
|
|
> remoteid=
|
|
> [remotefilelog]
|
|
> server=True
|
|
> EOF
|
|
|
|
# clone the server repo - should display "hostname: ..."
|
|
|
|
$ cd ..
|
|
$ hgcloneshallow ssh://user@dummy/server client
|
|
remote: hostname: * (glob)
|
|
streaming all changes
|
|
2 files to transfer, 227 bytes of data
|
|
transferred 227 bytes in * seconds (*/sec) (glob)
|
|
searching for changes
|
|
no changes found
|
|
updating to branch default
|
|
remote: hostname: * (glob)
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
|