mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
a97e026674
Summary: This is what extensions should belong to. Test Plan: Changed existing test. Reviewers: #mercurial, rmcelroy Reviewed By: rmcelroy Subscribers: mjpieters Differential Revision: https://phabricator.intern.facebook.com/D5113042 Signature: t1:5113042:1495561987:d1af0f7cebfdb8b0c1a6bb71cdc826d817a4e441
36 lines
882 B
Perl
36 lines
882 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=$TESTDIR/../hgext3rd/remoteid.py
|
|
> [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)
|