tests/test-diffdir.t
author Matt Mackall <mpm@selenic.com>
Mon, 20 Sep 2010 16:00:15 -0500
changeset 12346 3b165c127690
parent 12316 4134686b83e1
child 12617 2063d36b406e
permissions -rw-r--r--
tests: drop final true command from unified tests

  $ hg init
  $ touch a
  $ hg add a
  $ hg ci -m "a"

  $ echo 123 > b
  $ hg add b
  $ hg diff --nodates
  diff -r 3903775176ed b
  --- /dev/null
  +++ b/b
  @@ -0,0 +1,1 @@
  +123

  $ hg diff --nodates -r tip
  diff -r 3903775176ed b
  --- /dev/null
  +++ b/b
  @@ -0,0 +1,1 @@
  +123

  $ echo foo > a
  $ hg diff --nodates
  diff -r 3903775176ed a
  --- a/a
  +++ b/a
  @@ -0,0 +1,1 @@
  +foo
  diff -r 3903775176ed b
  --- /dev/null
  +++ b/b
  @@ -0,0 +1,1 @@
  +123

  $ hg diff -r ""
  abort: 00changelog.i@: ambiguous identifier!
  [255]
  $ hg diff -r tip -r ""
  abort: 00changelog.i@: ambiguous identifier!
  [255]