view tests/test-dirstate-backup.t @ 51448:89cd0dd41e4d stable

crecord: drop calls to `curses.endwin()` We got a bug report where `curses.endwin()` failed with `_curses.error: endwin() returned ERR`. Looking at e306d552dfb12, it seems like we should be able to just remove these calls.
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 29 Feb 2024 14:13:21 -0800
parents ffd19d73518d
children
line wrap: on
line source

Set up

  $ hg init repo
  $ cd repo
  $ echo a > a
  $ hg add a
  $ hg commit -m a

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