tests/test-dirstate-backup.t
author Yuya Nishihara <yuya@tcha.org>
Tue, 01 Dec 2020 19:32:36 +0900
changeset 46041 9c0db3671008
parent 45827 8d72e29ad1e0
child 49990 ffd19d73518d
permissions -rw-r--r--
log: do not override other filtering and sorting options by --bookmark This basically reimplements 0aa118f18d4b 'log: add bookmark option to "hg log"'. Before, any other filtering options but --rev were ignored. -G didn't work either since the ordering constraint wasn't enforced.

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