##// END OF EJS Templates
Avoid adding to the changelog executable files added by the second parent....
Alexis S. L. Carvalho -
r5227:46632396 default
parent child Browse files
Show More
@@ -0,0 +1,32 b''
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
5
6 "$TESTDIR/hghave" execbit || exit 80
7
8 hg init repo
9 cd repo
10 echo foo > foo
11 hg ci -qAm 'add foo' -d '0 0'
12
13 echo bar > bar
14 chmod +x bar
15 hg ci -qAm 'add bar' -d '0 0'
16 echo '% manifest of p2:'
17 hg manifest
18 echo
19
20 hg up -qC 0
21 echo >> foo
22 hg ci -m 'change foo' -d '0 0'
23 echo '% manifest of p1:'
24 hg manifest
25
26 hg merge
27 hg ci -m 'merge' -d '0 0'
28
29 echo '% this should not mention bar:'
30 hg tip -v
31
32 hg debugindex .hg/store/data/bar.i
@@ -0,0 +1,21 b''
1 % manifest of p2:
2 bar
3 foo
4
5 % manifest of p1:
6 foo
7 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
8 (branch merge, don't forget to commit)
9 % this should not mention bar:
10 changeset: 3:ef2fc9b4a51b
11 tag: tip
12 parent: 2:ed1b79f46b9a
13 parent: 1:d394a8db219b
14 user: test
15 date: Thu Jan 01 00:00:00 1970 +0000
16 description:
17 merge
18
19
20 rev offset length base linkrev nodeid p1 p2
21 0 0 5 0 1 b004912a8510 000000000000 000000000000
@@ -718,7 +718,7 b' class localrepository(repo.repository):'
718 new[f] = self.filecommit(f, m1, m2, linkrev, tr, changed)
718 new[f] = self.filecommit(f, m1, m2, linkrev, tr, changed)
719 new_exec = is_exec(f)
719 new_exec = is_exec(f)
720 new_link = is_link(f)
720 new_link = is_link(f)
721 if not changed or changed[-1] != f:
721 if (not changed or changed[-1] != f) and m2.get(f) != new[f]:
722 # mention the file in the changelog if some flag changed,
722 # mention the file in the changelog if some flag changed,
723 # even if there was no content change.
723 # even if there was no content change.
724 old_exec = m1.execf(f)
724 old_exec = m1.execf(f)
General Comments 0
You need to be logged in to leave comments. Login now