mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
33855b35cc
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
31 lines
544 B
Perl
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)
|
|
|