sapling/tests/test-fb-hgext-fastpartialmatch-shelve.t
Kostia Balytskyi b27a46c987 fb-hgext: fix copied fb-hgext tests
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
2018-01-09 03:06:09 -08:00

31 lines
578 B
Perl

$ mkcommit() {
> echo "$1" > "$1"
> hg add "$1"
> hg ci -m "$1"
> }
$ cat >> $HGRCPATH << EOF
> [extensions]
> fastpartialmatch=
> shelve=
> [ui]
> ssh = python "$TESTDIR/dummyssh"
> EOF
$ hg init repo
$ cd repo
$ echo 1 > 1
$ echo 2 > 2
$ hg add 1 2
$ hg ci -m 'first'
$ echo 3 > 2
$ hg shelve
shelved as default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ mkcommit second
$ hg unshelve
unshelving change 'default'
rebasing shelved changes
rebasing 2:341fd0af395d "changes to: first" (tip)