tests/test-issue1089.t
author Yuya Nishihara <yuya@tcha.org>
Thu, 19 Apr 2018 23:33:17 +0900
branchstable
changeset 37802 090c89a8db32
parent 35393 4441705b7111
child 49621 55c6ebd11cb9
permissions -rw-r--r--
diffhelpers: backport 9e40bc4c1bde from C implementation 9e40bc4c1bde just says "harden testhunk." I don't think this would be the case, but it makes some sense to avoid negative index.

https://bz.mercurial-scm.org/1089

  $ hg init
  $ mkdir a
  $ echo a > a/b
  $ hg ci -Am m
  adding a/b

  $ hg rm a
  removing a/b
  $ hg ci -m m a

  $ mkdir a b
  $ echo a > a/b
  $ hg ci -Am m
  adding a/b

  $ hg rm a
  removing a/b
  $ cd b

Relative delete:

  $ hg ci -m m ../a

  $ cd ..