Show More
@@ -145,7 +145,11 b' class patchheader(object):' | |||||
145 | patchheaderat = self.comments.index('# HG changeset patch') |
|
145 | patchheaderat = self.comments.index('# HG changeset patch') | |
146 | self.comments.insert(patchheaderat + 1, '# User ' + user) |
|
146 | self.comments.insert(patchheaderat + 1, '# User ' + user) | |
147 | except ValueError: |
|
147 | except ValueError: | |
148 | self.comments = ['From: ' + user, ''] + self.comments |
|
148 | if self._hasheader(['Date: ']): | |
|
149 | self.comments = ['From: ' + user] + self.comments | |||
|
150 | else: | |||
|
151 | tmp = ['# HG changeset patch', '# User ' + user, ''] | |||
|
152 | self.comments = tmp + self.comments | |||
149 | self.user = user |
|
153 | self.user = user | |
150 |
|
154 | |||
151 | def setdate(self, date): |
|
155 | def setdate(self, date): |
@@ -231,7 +231,8 b' 2: [mq]: 5.patch - test' | |||||
231 | 1: Three (again) - test |
|
231 | 1: Three (again) - test | |
232 | 0: [mq]: 1.patch - test |
|
232 | 0: [mq]: 1.patch - test | |
233 | ==== qref -u -d |
|
233 | ==== qref -u -d | |
234 | From: john |
|
234 | # HG changeset patch | |
|
235 | # User john | |||
235 |
|
236 | |||
236 |
|
237 | |||
237 | diff -r ... 8 |
|
238 | diff -r ... 8 | |
@@ -261,7 +262,8 b' 2: [mq]: 5.patch - test' | |||||
261 | 1: Three (again) - test |
|
262 | 1: Three (again) - test | |
262 | 0: [mq]: 1.patch - test |
|
263 | 0: [mq]: 1.patch - test | |
263 | ==== qref -u -d |
|
264 | ==== qref -u -d | |
264 | From: john |
|
265 | # HG changeset patch | |
|
266 | # User john | |||
265 |
|
267 | |||
266 | Nine |
|
268 | Nine | |
267 |
|
269 |
@@ -32,7 +32,8 b' diff -r ... 2' | |||||
32 | 1: [mq]: 2.patch - test |
|
32 | 1: [mq]: 2.patch - test | |
33 | 0: [mq]: 1.patch - mary |
|
33 | 0: [mq]: 1.patch - mary | |
34 | ==== qref -u |
|
34 | ==== qref -u | |
35 | From: jane |
|
35 | # HG changeset patch | |
|
36 | # User jane | |||
36 |
|
37 | |||
37 |
|
38 | |||
38 | diff -r ... 2 |
|
39 | diff -r ... 2 | |
@@ -117,7 +118,8 b' 2: Three (again) - maria' | |||||
117 | 1: [mq]: 2.patch - jane |
|
118 | 1: [mq]: 2.patch - jane | |
118 | 0: [mq]: 1.patch - mary |
|
119 | 0: [mq]: 1.patch - mary | |
119 | ==== qref -u |
|
120 | ==== qref -u | |
120 | From: jane |
|
121 | # HG changeset patch | |
|
122 | # User jane | |||
121 |
|
123 | |||
122 | Four |
|
124 | Four | |
123 |
|
125 |
General Comments 0
You need to be logged in to leave comments.
Login now