tests/test-remove-new
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Thu, 15 Jul 2010 21:44:51 +0200
changeset 11578 bb7af1de5e38
parent 11346 e740f36cfb4b
permissions -rwxr-xr-x
discovery: remove duplication for new remote head discovery
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
800
ec85f9e6f3b1 Don't use 'set -x', fix exports, sed and hexdump usage for Solaris.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 749
diff changeset
     1
#!/bin/sh
402
2fe8d66e3075 [PATCH] (3/4) Removing an added file
mpm@selenic.com
parents:
diff changeset
     2
11346
e740f36cfb4b tests: rename test-merge3 to test-add-remove.
Greg Ward <greg-hg@gerg.ca>
parents: 11177
diff changeset
     3
# test that 'hg commit' does not crash if the user removes a 
e740f36cfb4b tests: rename test-merge3 to test-add-remove.
Greg Ward <greg-hg@gerg.ca>
parents: 11177
diff changeset
     4
# newly added file
e740f36cfb4b tests: rename test-merge3 to test-add-remove.
Greg Ward <greg-hg@gerg.ca>
parents: 11177
diff changeset
     5
402
2fe8d66e3075 [PATCH] (3/4) Removing an added file
mpm@selenic.com
parents:
diff changeset
     6
hg init
2fe8d66e3075 [PATCH] (3/4) Removing an added file
mpm@selenic.com
parents:
diff changeset
     7
echo This is file a1 > a
2fe8d66e3075 [PATCH] (3/4) Removing an added file
mpm@selenic.com
parents:
diff changeset
     8
hg add a
1933
7544700fd931 Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 814
diff changeset
     9
hg commit -m "commit #0" -d "1000000 0"
402
2fe8d66e3075 [PATCH] (3/4) Removing an added file
mpm@selenic.com
parents:
diff changeset
    10
touch b
2fe8d66e3075 [PATCH] (3/4) Removing an added file
mpm@selenic.com
parents:
diff changeset
    11
hg add b
2fe8d66e3075 [PATCH] (3/4) Removing an added file
mpm@selenic.com
parents:
diff changeset
    12
rm b
1933
7544700fd931 Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 814
diff changeset
    13
hg commit -A -m"comment #1" -d "1000000 0"
11177
6a64813276ed commands: initial audit of exit codes
Matt Mackall <mpm@selenic.com>
parents: 1933
diff changeset
    14
exit 0