sapling/tests/test-treedirstate-backup.t
Mark Thomas 33855b35cc treedirstate: add integration tests
Copy the dirstate tests from core Mercurial, but run them with treedirstate
instead of the default dirstate map.

Add an extra test that covers scenarios specific to treedirstate.

Differential Revision: https://phab.mercurial-scm.org/D1490
2017-11-28 04:51:38 -08:00

31 lines
544 B
Perl

$ . $TESTDIR/require-ext.sh hgext3rd.rust.treedirstate
Copy of test-dirstate-backup.t for treedirstate
$ cat >> $HGRCPATH <<EOF
> [extensions]
> treedirstate=$TESTDIR/../hgext3rd/treedirstate.py
> [treedirstate]
> useinnewrepos=True
> EOF
Set up
$ hg init repo
$ cd repo
Try to import an empty patch
$ hg import --no-commit - <<EOF
> EOF
applying patch from stdin
abort: stdin: no diffs found
[255]
No dirstate backups are left behind
$ ls .hg/dirstate* | sort
.hg/dirstate
.hg/dirstate.tree.* (glob)