tests/test-dirstate-backup.t
author David Soria Parra <davidsp@fb.com>
Thu, 23 Nov 2017 14:11:27 -0800
changeset 35149 fd8b6b183073
parent 34940 c2b30348930f
child 45846 8d72e29ad1e0
permissions -rw-r--r--
hbisect: pass repo into hbisect.bisect Pass repo into the bisect function to get more flexibility in what we can call. This will allow us to use revsets to rewrite parts of the ancestor and children calculation in later patches. Test Plan: python run-tests.py test-bisect* Differential Revision: https://phab.mercurial-scm.org/D1497

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