Show More
@@ -1073,10 +1073,8 b' class queue(object):' | |||||
1073 | if self.plainmode: |
|
1073 | if self.plainmode: | |
1074 | if user: |
|
1074 | if user: | |
1075 | p.write("From: " + user + "\n") |
|
1075 | p.write("From: " + user + "\n") | |
1076 | if not date: |
|
|||
1077 | p.write("\n") |
|
|||
1078 | if date: |
|
1076 | if date: | |
1079 |
p.write("Date: %d %d\n |
|
1077 | p.write("Date: %d %d\n" % date) | |
1080 | else: |
|
1078 | else: | |
1081 | p.write("# HG changeset patch\n") |
|
1079 | p.write("# HG changeset patch\n") | |
1082 | p.write("# Parent " |
|
1080 | p.write("# Parent " | |
@@ -1084,7 +1082,7 b' class queue(object):' | |||||
1084 | if user: |
|
1082 | if user: | |
1085 | p.write("# User " + user + "\n") |
|
1083 | p.write("# User " + user + "\n") | |
1086 | if date: |
|
1084 | if date: | |
1087 |
p.write("# Date %s %s\n |
|
1085 | p.write("# Date %s %s\n" % date) | |
1088 |
|
1086 | |||
1089 | defaultmsg = "[mq]: %s" % patchfn |
|
1087 | defaultmsg = "[mq]: %s" % patchfn | |
1090 | editor = cmdutil.getcommiteditor(editform=editform) |
|
1088 | editor = cmdutil.getcommiteditor(editform=editform) | |
@@ -1117,6 +1115,8 b' class queue(object):' | |||||
1117 | if nctx.description() != defaultmsg.rstrip(): |
|
1115 | if nctx.description() != defaultmsg.rstrip(): | |
1118 | msg = nctx.description() + "\n\n" |
|
1116 | msg = nctx.description() + "\n\n" | |
1119 | p.write(msg) |
|
1117 | p.write(msg) | |
|
1118 | elif not self.plainmode or date or user: | |||
|
1119 | p.write('\n') | |||
1120 | if commitfiles: |
|
1120 | if commitfiles: | |
1121 | parent = self.qparents(repo, n) |
|
1121 | parent = self.qparents(repo, n) | |
1122 | if inclsubs: |
|
1122 | if inclsubs: |
@@ -243,7 +243,6 b'' | |||||
243 | now at: 1.patch |
|
243 | now at: 1.patch | |
244 | ==== qnew -d -m |
|
244 | ==== qnew -d -m | |
245 | Date: 6 0 |
|
245 | Date: 6 0 | |
246 |
|
||||
247 | Three |
|
246 | Three | |
248 |
|
247 | |||
249 | 1: Three - test - 6.00 |
|
248 | 1: Three - test - 6.00 | |
@@ -251,7 +250,6 b'' | |||||
251 | ==== qref |
|
250 | ==== qref | |
252 | adding 3 |
|
251 | adding 3 | |
253 | Date: 6 0 |
|
252 | Date: 6 0 | |
254 |
|
||||
255 | Three |
|
253 | Three | |
256 |
|
254 | |||
257 | diff -r ... 3 |
|
255 | diff -r ... 3 | |
@@ -263,7 +261,6 b'' | |||||
263 | 0: [mq]: 1.patch - test - 4.00 |
|
261 | 0: [mq]: 1.patch - test - 4.00 | |
264 | ==== qref -m |
|
262 | ==== qref -m | |
265 | Date: 6 0 |
|
263 | Date: 6 0 | |
266 |
|
||||
267 | Drei |
|
264 | Drei | |
268 |
|
265 | |||
269 | diff -r ... 3 |
|
266 | diff -r ... 3 | |
@@ -275,7 +272,6 b'' | |||||
275 | 0: [mq]: 1.patch - test - 4.00 |
|
272 | 0: [mq]: 1.patch - test - 4.00 | |
276 | ==== qref -d |
|
273 | ==== qref -d | |
277 | Date: 7 0 |
|
274 | Date: 7 0 | |
278 |
|
||||
279 | Drei |
|
275 | Drei | |
280 |
|
276 | |||
281 | diff -r ... 3 |
|
277 | diff -r ... 3 | |
@@ -287,7 +283,6 b'' | |||||
287 | 0: [mq]: 1.patch - test - 4.00 |
|
283 | 0: [mq]: 1.patch - test - 4.00 | |
288 | ==== qref -d -m |
|
284 | ==== qref -d -m | |
289 | Date: 8 0 |
|
285 | Date: 8 0 | |
290 |
|
||||
291 | Three (again) |
|
286 | Three (again) | |
292 |
|
287 | |||
293 | diff -r ... 3 |
|
288 | diff -r ... 3 | |
@@ -590,7 +585,6 b'' | |||||
590 | # HG changeset patch |
|
585 | # HG changeset patch | |
591 | # Parent |
|
586 | # Parent | |
592 | # Date 6 0 |
|
587 | # Date 6 0 | |
593 |
|
||||
594 | Three |
|
588 | Three | |
595 |
|
589 | |||
596 | 1: Three - test - 6.00 |
|
590 | 1: Three - test - 6.00 | |
@@ -600,7 +594,6 b'' | |||||
600 | # HG changeset patch |
|
594 | # HG changeset patch | |
601 | # Parent |
|
595 | # Parent | |
602 | # Date 6 0 |
|
596 | # Date 6 0 | |
603 |
|
||||
604 | Three |
|
597 | Three | |
605 |
|
598 | |||
606 | diff -r ... 3 |
|
599 | diff -r ... 3 | |
@@ -614,7 +607,6 b'' | |||||
614 | # HG changeset patch |
|
607 | # HG changeset patch | |
615 | # Parent |
|
608 | # Parent | |
616 | # Date 6 0 |
|
609 | # Date 6 0 | |
617 |
|
||||
618 | Drei |
|
610 | Drei | |
619 |
|
611 | |||
620 | diff -r ... 3 |
|
612 | diff -r ... 3 | |
@@ -628,7 +620,6 b'' | |||||
628 | # HG changeset patch |
|
620 | # HG changeset patch | |
629 | # Parent |
|
621 | # Parent | |
630 | # Date 7 0 |
|
622 | # Date 7 0 | |
631 |
|
||||
632 | Drei |
|
623 | Drei | |
633 |
|
624 | |||
634 | diff -r ... 3 |
|
625 | diff -r ... 3 | |
@@ -642,7 +633,6 b'' | |||||
642 | # HG changeset patch |
|
633 | # HG changeset patch | |
643 | # Parent |
|
634 | # Parent | |
644 | # Date 8 0 |
|
635 | # Date 8 0 | |
645 |
|
||||
646 | Three (again) |
|
636 | Three (again) | |
647 |
|
637 | |||
648 | diff -r ... 3 |
|
638 | diff -r ... 3 |
@@ -176,7 +176,6 b'' | |||||
176 | 0: [mq]: 1.patch - mary |
|
176 | 0: [mq]: 1.patch - mary | |
177 | ==== qnew -U -m |
|
177 | ==== qnew -U -m | |
178 | From: test |
|
178 | From: test | |
179 |
|
||||
180 | Three |
|
179 | Three | |
181 |
|
180 | |||
182 | 2: Three - test |
|
181 | 2: Three - test | |
@@ -185,7 +184,6 b'' | |||||
185 | ==== qref |
|
184 | ==== qref | |
186 | adding 3 |
|
185 | adding 3 | |
187 | From: test |
|
186 | From: test | |
188 |
|
||||
189 | Three |
|
187 | Three | |
190 |
|
188 | |||
191 | diff -r ... 3 |
|
189 | diff -r ... 3 | |
@@ -198,7 +196,6 b'' | |||||
198 | 0: [mq]: 1.patch - mary |
|
196 | 0: [mq]: 1.patch - mary | |
199 | ==== qref -m |
|
197 | ==== qref -m | |
200 | From: test |
|
198 | From: test | |
201 |
|
||||
202 | Drei |
|
199 | Drei | |
203 |
|
200 | |||
204 | diff -r ... 3 |
|
201 | diff -r ... 3 | |
@@ -211,7 +208,6 b'' | |||||
211 | 0: [mq]: 1.patch - mary |
|
208 | 0: [mq]: 1.patch - mary | |
212 | ==== qref -u |
|
209 | ==== qref -u | |
213 | From: mary |
|
210 | From: mary | |
214 |
|
||||
215 | Drei |
|
211 | Drei | |
216 |
|
212 | |||
217 | diff -r ... 3 |
|
213 | diff -r ... 3 | |
@@ -224,7 +220,6 b'' | |||||
224 | 0: [mq]: 1.patch - mary |
|
220 | 0: [mq]: 1.patch - mary | |
225 | ==== qref -u -m |
|
221 | ==== qref -u -m | |
226 | From: maria |
|
222 | From: maria | |
227 |
|
||||
228 | Three (again) |
|
223 | Three (again) | |
229 |
|
224 | |||
230 | diff -r ... 3 |
|
225 | diff -r ... 3 | |
@@ -406,6 +401,7 b'' | |||||
406 | # HG changeset patch |
|
401 | # HG changeset patch | |
407 | # Parent |
|
402 | # Parent | |
408 | # User test |
|
403 | # User test | |
|
404 | ||||
409 | 0: [mq]: 1.patch - test |
|
405 | 0: [mq]: 1.patch - test | |
410 | ==== qref |
|
406 | ==== qref | |
411 | adding 1 |
|
407 | adding 1 | |
@@ -690,6 +686,7 b'' | |||||
690 | # HG changeset patch |
|
686 | # HG changeset patch | |
691 | # Parent |
|
687 | # Parent | |
692 | # User test |
|
688 | # User test | |
|
689 | ||||
693 | 0: [mq]: 1.patch - test |
|
690 | 0: [mq]: 1.patch - test | |
694 | ==== qref |
|
691 | ==== qref | |
695 | adding 1 |
|
692 | adding 1 |
@@ -209,6 +209,7 b' hg headers' | |||||
209 | M d/b |
|
209 | M d/b | |
210 | # HG changeset patch |
|
210 | # HG changeset patch | |
211 | # Parent |
|
211 | # Parent | |
|
212 | ||||
212 | diff --git a/d/b b/d/b |
|
213 | diff --git a/d/b b/d/b | |
213 | --- a/d/b |
|
214 | --- a/d/b | |
214 | +++ b/d/b |
|
215 | +++ b/d/b | |
@@ -219,10 +220,12 b' hg headers' | |||||
219 | # HG changeset patch |
|
220 | # HG changeset patch | |
220 | # Parent |
|
221 | # Parent | |
221 | # User blue |
|
222 | # User blue | |
|
223 | ||||
222 | % qnew -e -u with no username configured |
|
224 | % qnew -e -u with no username configured | |
223 | # HG changeset patch |
|
225 | # HG changeset patch | |
224 | # Parent |
|
226 | # Parent | |
225 | # User chartreuse |
|
227 | # User chartreuse | |
|
228 | ||||
226 | % fail when trying to import a merge |
|
229 | % fail when trying to import a merge | |
227 | adding a |
|
230 | adding a | |
228 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
231 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
@@ -337,6 +340,7 b' Test handling default message with the p' | |||||
337 | $ cat ".hg/patches/patch " |
|
340 | $ cat ".hg/patches/patch " | |
338 | # HG changeset patch |
|
341 | # HG changeset patch | |
339 | # Parent 0000000000000000000000000000000000000000 |
|
342 | # Parent 0000000000000000000000000000000000000000 | |
|
343 | ||||
340 |
|
|
344 | ||
341 | $ cd .. |
|
345 | $ cd .. | |
342 |
|
346 |
@@ -508,6 +508,7 b' but only after writing the bad name into' | |||||
508 | $ cat .hg/patches/a |
|
508 | $ cat .hg/patches/a | |
509 | # HG changeset patch |
|
509 | # HG changeset patch | |
510 | # Parent 0000000000000000000000000000000000000000 |
|
510 | # Parent 0000000000000000000000000000000000000000 | |
|
511 | ||||
511 | diff --git a/a b/a |
|
512 | diff --git a/a b/a | |
512 | new file mode 100644 |
|
513 | new file mode 100644 | |
513 | $ hg qpush |
|
514 | $ hg qpush | |
@@ -522,6 +523,7 b' but only after writing the bad name into' | |||||
522 | $ cat .hg/patches/a |
|
523 | $ cat .hg/patches/a | |
523 | # HG changeset patch |
|
524 | # HG changeset patch | |
524 | # Parent 0000000000000000000000000000000000000000 |
|
525 | # Parent 0000000000000000000000000000000000000000 | |
|
526 | ||||
525 | diff --git a/a b/a |
|
527 | diff --git a/a b/a | |
526 | new file mode 100644 |
|
528 | new file mode 100644 | |
527 | $ cd .. |
|
529 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now