Mercurial > hg
comparison tests/test-mq-qimport.out @ 9287:53fdf18fd63b
mq: Parse commit message after we find start of changeset patch
patch.extract extracts just the message below HG changeset patch. So to not
parse comments above the patch, we reset the message if we find a changeset
patch as we know the commit message comes after the changeset patch data.
This is similar to the behavior of patch.extract.
The drawback of this approach, after a qref -e the comment above HG changeset
patch is gone. Without this patch the message would become part of the commit
message in the HG changset patch part.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Tue, 28 Jul 2009 15:36:28 +0200 |
parents | 6e6f5b80e056 |
children | e668bcd0e25f 74e717a21779 |
comparison
equal
deleted
inserted
replaced
9284:4a1b24dbf753 | 9287:53fdf18fd63b |
---|---|
1 % qimport non-existing-file | 1 % qimport non-existing-file |
2 abort: unable to read non-existing-file | 2 abort: unable to read non-existing-file |
3 % import email | |
4 adding email to series file | |
5 applying email | |
6 now at: email | |
7 % hg tip -v | |
8 changeset: 0:1a706973a7d8 | |
9 tag: qtip | |
10 tag: tip | |
11 tag: email | |
12 tag: qbase | |
13 user: Username in patch <test@example.net> | |
14 date: Thu Jan 01 00:00:00 1970 +0000 | |
15 files: x | |
16 description: | |
17 First line of commit message. | |
18 | |
19 More text in commit message. | |
20 | |
21 | |
22 patch queue now empty | |
3 % import URL | 23 % import URL |
4 adding url.diff to series file | 24 adding url.diff to series file |
5 url.diff | 25 url.diff |
6 % import patch that already exists | 26 % import patch that already exists |
7 abort: patch "url.diff" already exists | 27 abort: patch "url.diff" already exists |