##// END OF EJS Templates
tests: unify test-changelog-exec
Martin Geisler -
r11875:88f5b5c0 default
parent child Browse files
Show More
@@ -1,32 +1,53
1 #!/bin/sh
2 # b51a8138292a introduced a regression where we would mention in the
3 # changelog executable files added by the second parent of a merge.
4 # Test that that doesn't happen anymore
1 b51a8138292a introduced a regression where we would mention in the
2 changelog executable files added by the second parent of a merge. Test
3 that that doesn't happen anymore
4
5 $ "$TESTDIR/hghave" execbit || exit 80
6
7 $ hg init repo
8 $ cd repo
9 $ echo foo > foo
10 $ hg ci -qAm 'add foo'
5 11
6 "$TESTDIR/hghave" execbit || exit 80
12 $ echo bar > bar
13 $ chmod +x bar
14 $ hg ci -qAm 'add bar'
15
16 manifest of p2:
7 17
8 hg init repo
9 cd repo
10 echo foo > foo
11 hg ci -qAm 'add foo'
18 $ hg manifest
19 bar
20 foo
21
22 $ hg up -qC 0
23 $ echo >> foo
24 $ hg ci -m 'change foo'
25 created new head
12 26
13 echo bar > bar
14 chmod +x bar
15 hg ci -qAm 'add bar'
16 echo '% manifest of p2:'
17 hg manifest
18 echo
27 manifest of p1:
28
29 $ hg manifest
30 foo
31
32 $ hg merge
33 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
34 (branch merge, don't forget to commit)
35 $ hg ci -m 'merge'
36
37 this should not mention bar:
19 38
20 hg up -qC 0
21 echo >> foo
22 hg ci -m 'change foo'
23 echo '% manifest of p1:'
24 hg manifest
39 $ hg tip -v
40 changeset: 3:ef2fc9b4a51b
41 tag: tip
42 parent: 2:ed1b79f46b9a
43 parent: 1:d394a8db219b
44 user: test
45 date: Thu Jan 01 00:00:00 1970 +0000
46 description:
47 merge
48
49
25 50
26 hg merge
27 hg ci -m 'merge'
28
29 echo '% this should not mention bar:'
30 hg tip -v
31
32 hg debugindex .hg/store/data/bar.i
51 $ hg debugindex .hg/store/data/bar.i
52 rev offset length base linkrev nodeid p1 p2
53 0 0 5 0 1 b004912a8510 000000000000 000000000000
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now