tests/test-dirstate-backup.t
author Yuya Nishihara <yuya@tcha.org>
Tue, 01 Dec 2020 19:23:23 +0900
changeset 46044 9ee791f3278f
parent 45846 8d72e29ad1e0
child 50046 ffd19d73518d
permissions -rw-r--r--
scmutil: extract function that builds revset expr to select bookmark branch This is needed to process "log -B" option properly. "log" options have to be translated to a revset expression, not to an evaluated set.

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
  [10]

No dirstate backups are left behind

  $ ls .hg/dirstate* | sort
  .hg/dirstate