##// 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 97 for line in file(pf):
98 98 line = line.rstrip()
99 if line.startswith('diff --git'):
99 if (line.startswith('diff --git')
100 or (diffstart and line.startswith('+++ '))):
100 101 diffstart = 2
101 102 break
102 if diffstart:
103 if line.startswith('+++ '):
104 diffstart = 2
105 break
103 diffstart = 0 # reset
106 104 if line.startswith("--- "):
107 105 diffstart = 1
108 106 continue
@@ -43,6 +43,7 b' Text before patch.'
43 43 First line of commit message.
44 44
45 45 More text in commit message.
46 --- confuse the diff detection
46 47
47 48 diff --git a/x b/x
48 49 new file mode 100644
General Comments 0
You need to be logged in to leave comments. Login now