tests/test-issue1438.t
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
Tue, 28 Apr 2015 15:29:15 -0400
changeset 24929 6fb98463643b
parent 22046 7a9cbb315d84
child 26420 2fc86d92c4a9
permissions -rw-r--r--
test-command-template: test the phase template more precisely The current test that greps for "phase:" only checks that the word "phase" is in the output, but does not test that nothing else gets added by this template. This improves these tests by showing a unified

#require symlink

http://mercurial.selenic.com/bts/issue1438

  $ hg init

  $ ln -s foo link
  $ hg add link
  $ hg ci -mbad link
  $ hg rm link
  $ hg ci -mok
  $ hg diff -g -r 0:1 > bad.patch

  $ hg up 0
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved

  $ hg import --no-commit bad.patch
  applying bad.patch

  $ hg status
  R link
  ? bad.patch