##// END OF EJS Templates
mq: allow lines starting with '--- ' in patch messages
Benoit Boissinot -
r10730:4d6bd7b8 stable
parent child Browse files
Show More
@@ -96,13 +96,11 b' class patchheader(object):'
96
96
97 for line in file(pf):
97 for line in file(pf):
98 line = line.rstrip()
98 line = line.rstrip()
99 if line.startswith('diff --git'):
99 if (line.startswith('diff --git')
100 or (diffstart and line.startswith('+++ '))):
100 diffstart = 2
101 diffstart = 2
101 break
102 break
102 if diffstart:
103 diffstart = 0 # reset
103 if line.startswith('+++ '):
104 diffstart = 2
105 break
106 if line.startswith("--- "):
104 if line.startswith("--- "):
107 diffstart = 1
105 diffstart = 1
108 continue
106 continue
@@ -43,6 +43,7 b' Text before patch.'
43 First line of commit message.
43 First line of commit message.
44
44
45 More text in commit message.
45 More text in commit message.
46 --- confuse the diff detection
46
47
47 diff --git a/x b/x
48 diff --git a/x b/x
48 new file mode 100644
49 new file mode 100644
General Comments 0
You need to be logged in to leave comments. Login now