Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG95a079ea1e19: tests: drop obsolete "hginit" alias in remotefilelog tests
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
pulkit |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Martin von Zweigbergk | Nov 9 2018, 11:19 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz |
[remotefilelog] | [remotefilelog] | ||||
reponame=master | reponame=master | ||||
datapackversion=1 | datapackversion=1 | ||||
[phases] | [phases] | ||||
publish=False | publish=False | ||||
EOF | EOF | ||||
} | } | ||||
hginit() { | |||||
local name | |||||
name=$1 | |||||
shift | |||||
hg init $name $@ | |||||
} | |||||
clearcache() { | clearcache() { | ||||
rm -rf $CACHEDIR/* | rm -rf $CACHEDIR/* | ||||
} | } | ||||
mkcommit() { | mkcommit() { | ||||
echo "$1" > "$1" | echo "$1" > "$1" | ||||
hg add "$1" | hg add "$1" | ||||
hg ci -m "$1" | hg ci -m "$1" |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ echo y > y | $ echo y > y | ||||
$ echo z > z | $ echo z > z |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ echo z > z | $ echo z > z | ||||
$ hg commit -qAm x | $ hg commit -qAm x |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
$ echo y >> x | $ echo y >> x |
> for k in ['01', '02', '03']: | > for k in ['01', '02', '03']: | ||||
> if not packermap.get(k): | > if not packermap.get(k): | ||||
> raise error.Abort("packermap doesn't have key '%s'!" % k) | > raise error.Abort("packermap doesn't have key '%s'!" % k) | ||||
> | > | ||||
> del packermap['02'] | > del packermap['02'] | ||||
> deleted = True | > deleted = True | ||||
> EOF | > EOF | ||||
$ hginit master | $ hg init master | ||||
$ grep generaldelta master/.hg/requires | $ grep generaldelta master/.hg/requires | ||||
generaldelta | generaldelta | ||||
$ cd master | $ cd master | ||||
preferuncompressed = False so that we can make both generaldelta and non-generaldelta clones | preferuncompressed = False so that we can make both generaldelta and non-generaldelta clones | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> [experimental] | > [experimental] |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ grep generaldelta master/.hg/requires | $ grep generaldelta master/.hg/requires | ||||
generaldelta | generaldelta | ||||
$ cd master | $ cd master | ||||
preferuncompressed = False so that we can make both generaldelta and non-generaldelta clones | preferuncompressed = False so that we can make both generaldelta and non-generaldelta clones | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> [experimental] | > [experimental] |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
$ echo y >> x | $ echo y >> x |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ echo treemanifest >> .hg/requires | $ echo treemanifest >> .hg/requires | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
# uppercase directory name to test encoding | # uppercase directory name to test encoding | ||||
$ mkdir -p A/B | $ mkdir -p A/B |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ echo y > y | $ echo y > y | ||||
$ echo z > z | $ echo z > z |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> serverexpiration=-1 | > serverexpiration=-1 | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
$ echo y > y | $ echo y > y |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ echo y > y | $ echo y > y | ||||
$ hg commit -qAm x | $ hg commit -qAm x |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> serverexpiration=-1 | > serverexpiration=-1 | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
# Tests for the complicated linknode logic in remotefilelog.py::ancestormap() | # Tests for the complicated linknode logic in remotefilelog.py::ancestormap() | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> serverexpiration=-1 | > serverexpiration=-1 | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
$ cd .. | $ cd .. | ||||
# Reset repos | # Reset repos | ||||
$ clearcache | $ clearcache | ||||
$ rm -rf master | $ rm -rf master | ||||
$ rm -rf shallow | $ rm -rf shallow | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> serverexpiration=-1 | > serverexpiration=-1 | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ echo y > y | $ echo y > y | ||||
$ echo z > z | $ echo z > z |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
$ mkdir dir | $ mkdir dir |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > foo | $ echo x > foo | ||||
$ echo y > bar | $ echo y > bar | ||||
$ hg commit -qAm one | $ hg commit -qAm one |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ echo z > z | $ echo z > z | ||||
$ hg commit -qAm x | $ hg commit -qAm x |
> from mercurial import extensions | > from mercurial import extensions | ||||
> def extsetup(ui): | > def extsetup(ui): | ||||
> remotefilelog = extensions.find('remotefilelog') | > remotefilelog = extensions.find('remotefilelog') | ||||
> remotefilelog.onetimeclientsetup(ui) | > remotefilelog.onetimeclientsetup(ui) | ||||
> EOF | > EOF | ||||
Set up the master repository to pull from. | Set up the master repository to pull from. | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
(run 'hg update' to get a working copy) | (run 'hg update' to get a working copy) | ||||
$ cd .. | $ cd .. | ||||
# Test pushing from shallow to shallow with multiple manifests introducing the | # Test pushing from shallow to shallow with multiple manifests introducing the | ||||
# same filenode. Test this by constructing two separate histories of file 'c' | # same filenode. Test this by constructing two separate histories of file 'c' | ||||
# that share a file node and verifying that the history works after pushing. | # that share a file node and verifying that the history works after pushing. | ||||
$ hginit multimf-master | $ hg init multimf-master | ||||
$ hgcloneshallow ssh://user@dummy/multimf-master multimf-shallow -q | $ hgcloneshallow ssh://user@dummy/multimf-master multimf-shallow -q | ||||
$ hgcloneshallow ssh://user@dummy/multimf-master multimf-shallow2 -q | $ hgcloneshallow ssh://user@dummy/multimf-master multimf-shallow2 -q | ||||
$ cd multimf-shallow | $ cd multimf-shallow | ||||
$ echo a > a | $ echo a > a | ||||
$ hg commit -qAm a | $ hg commit -qAm a | ||||
$ echo b > b | $ echo b > b | ||||
$ hg commit -qAm b | $ hg commit -qAm b | ||||
$ echo c > c | $ echo c > c |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ cat >> $HGRCPATH <<EOF | $ cat >> $HGRCPATH <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> fastdatapack=True | > fastdatapack=True | ||||
> EOF | > EOF | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> serverexpiration=-1 | > serverexpiration=-1 | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> serverexpiration=-1 | > serverexpiration=-1 | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ echo z > z | $ echo z > z | ||||
$ hg commit -qAm x1 | $ hg commit -qAm x1 |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > foo | $ echo x > foo | ||||
$ echo y > bar | $ echo y > bar | ||||
$ hg commit -qAm one | $ hg commit -qAm one |
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH | ||||
$ export PYTHONPATH | $ export PYTHONPATH | ||||
$ . "$TESTDIR/remotefilelog-library.sh" | $ . "$TESTDIR/remotefilelog-library.sh" | ||||
$ hginit master | $ hg init master | ||||
$ cd master | $ cd master | ||||
$ cat >> .hg/hgrc <<EOF | $ cat >> .hg/hgrc <<EOF | ||||
> [remotefilelog] | > [remotefilelog] | ||||
> server=True | > server=True | ||||
> EOF | > EOF | ||||
$ echo x > x | $ echo x > x | ||||
$ hg commit -qAm x | $ hg commit -qAm x | ||||
$ echo y >> x | $ echo y >> x |