tests/test-remove-new.t
author Martin Geisler <mg@lazybytes.net>
Wed, 01 Sep 2010 12:28:34 +0200
changeset 12130 48735ce02345
parent 12100 4d6bb7615564
child 12156 4c94b6d0fb1c
permissions -rw-r--r--
merge with stable
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12100
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
     1
test that 'hg commit' does not crash if the user removes a newly added file
11346
e740f36cfb4b tests: rename test-merge3 to test-add-remove.
Greg Ward <greg-hg@gerg.ca>
parents: 11177
diff changeset
     2
12100
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
     3
  $ hg init
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
     4
  $ echo This is file a1 > a
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
     5
  $ hg add a
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
     6
  $ hg commit -m "commit #0" -d "1000000 0"
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
     7
  $ touch b
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
     8
  $ hg add b
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
     9
  $ rm b
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
    10
  $ hg commit -A -m"comment #1" -d "1000000 0"
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
    11
  removing b
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
    12
  nothing changed
4d6bb7615564 tests: unify test-remove-new
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 11346
diff changeset
    13
  $ exit 0