##// END OF EJS Templates
tests: unify test-changelog-exec
Martin Geisler -
r11875:88f5b5c0 default
parent child Browse files
Show More
@@ -1,32 +1,53 b''
1 #!/bin/sh
1 b51a8138292a introduced a regression where we would mention in the
2 # b51a8138292a introduced a regression where we would mention in the
2 changelog executable files added by the second parent of a merge. Test
3 # changelog executable files added by the second parent of a merge.
3 that that doesn't happen anymore
4 # Test 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
18 $ hg manifest
9 cd repo
19 bar
10 echo foo > foo
20 foo
11 hg ci -qAm 'add 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
27 manifest of p1:
14 chmod +x bar
28
15 hg ci -qAm 'add bar'
29 $ hg manifest
16 echo '% manifest of p2:'
30 foo
17 hg manifest
31
18 echo
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
39 $ hg tip -v
21 echo >> foo
40 changeset: 3:ef2fc9b4a51b
22 hg ci -m 'change foo'
41 tag: tip
23 echo '% manifest of p1:'
42 parent: 2:ed1b79f46b9a
24 hg manifest
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
51 $ hg debugindex .hg/store/data/bar.i
27 hg ci -m 'merge'
52 rev offset length base linkrev nodeid p1 p2
28
53 0 0 5 0 1 b004912a8510 000000000000 000000000000
29 echo '% this should not mention bar:'
30 hg tip -v
31
32 hg debugindex .hg/store/data/bar.i
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now