tests/test-remove-new.t
author David Soria Parra <dsp@php.net>
Fri, 11 May 2012 16:08:49 +0200
branchstable
changeset 16632 0c0c1101e46d
parent 12327 92e30e135581
permissions -rw-r--r--
pager: remove quiet flag With the pager running as a child process, exiting the pager doesn't result in a broken pipe message. To distinguish the exit broken pipe code from a mercurial abort we register the default action for SIGPIPE. This results in a 141 exit code instead of a 255. On windows SIGPIPE doesn't exists and a ValueError will be thrown.

test that 'hg commit' does not crash if the user removes a newly added file

  $ hg init
  $ echo This is file a1 > a
  $ hg add a
  $ hg commit -m "commit #0"
  $ touch b
  $ hg add b
  $ rm b
  $ hg commit -A -m"comment #1"
  removing b
  nothing changed
  [1]