annotate tests/test-debugindexdot @ 9336:dd6f605b15c0
mq: upgrade the patch to HG format when adding the author name with qrefresh
When setting the author field with qrefresh (-u|-U), and the patch does have
neither a 'From:' nor a '# User' header, add the author name as such:
- if the patch has a 'Date:' header, add a 'From:' header
- otherwise, upgrade to Mercurial extended patch format and add # From
author |
Yann E. MORIN <yann.morin.1998@anciens.enib.fr> |
date |
Wed, 12 Aug 2009 10:48:18 +0200 |
parents |
8838fe5a236f |
children |
|
rev |
line source |
5346
|
1 #!/bin/sh
|
|
2
|
|
3 # Just exercize debugindexdot
|
|
4 # Create a short file history including a merge.
|
|
5 hg init t
|
|
6 cd t
|
|
7 echo a > a
|
|
8 hg ci -qAm t1 -d '0 0'
|
|
9 echo a >> a
|
|
10 hg ci -m t2 -d '1 0'
|
|
11 hg up -qC 0
|
|
12 echo b >> a
|
|
13 hg ci -m t3 -d '2 0'
|
|
14 HGMERGE=true hg merge -q
|
|
15 hg ci -m merge -d '3 0'
|
|
16
|
|
17 hg debugindexdot .hg/store/data/a.i
|