sapling/tests/test-fb-hgext-fastpartialmatch-bundlerepo.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

33 lines
838 B
Perl

$ mkcommit() {
> echo "$1" > "$1"
> hg add "$1"
> hg ci -m "$1"
> }
$ cat >> $HGRCPATH << EOF
> [extensions]
> fastpartialmatch=
> strip=
> EOF
$ hg init repo
$ cd repo
$ hg debugbuilddag +2
$ hg log -r 1 -T '{node}\n'
66f7d451a68b85ed82ff5fcc254daf50c74144bd
$ hg strip -r 66f7d451a68b85ed8
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/66f7d451a68b-f4da9ecf-backup.hg (glob)
$ hg debugrebuildpartialindex
$ hg debugcheckpartialindex
$ hg log -r 66f7d451a68b85ed8
abort: unknown revision '66f7d451a68b85ed8'!
[255]
$ hg log --config fastpartialmatch.raiseifinconsistent=True -R $TESTTMP/repo/.hg/strip-backup/* -r 66f7d451a68b85ed8
changeset: 1:66f7d451a68b
tag: tip
user: debugbuilddag
date: Thu Jan 01 00:00:01 1970 +0000
summary: r1