Show More
@@ -1,58 +1,58 | |||||
1 |
|
1 | |||
2 | $ cat >> $HGRCPATH <<EOF |
|
2 | $ cat >> $HGRCPATH <<EOF | |
3 | > [extensions] |
|
3 | > [extensions] | |
4 | > convert= |
|
4 | > convert= | |
5 | > EOF |
|
5 | > EOF | |
6 |
|
6 | |||
7 | Prepare orig repo |
|
7 | Prepare orig repo | |
8 |
|
8 | |||
9 | $ hg init orig |
|
9 | $ hg init orig | |
10 | $ cd orig |
|
10 | $ cd orig | |
11 | $ echo foo > foo |
|
11 | $ echo foo > foo | |
12 | $ HGUSER='user name' hg ci -qAm 'foo' |
|
12 | $ HGUSER='user name' hg ci -qAm 'foo' | |
13 | $ cd .. |
|
13 | $ cd .. | |
14 |
|
14 | |||
15 | Explicit --authors |
|
15 | Explicit --authors | |
16 |
|
16 | |||
17 | $ cat > authormap.txt <<EOF |
|
17 | $ cat > authormap.txt <<EOF | |
18 | > user name = Long User Name |
|
18 | > user name = Long User Name | |
19 | > |
|
19 | > | |
20 | > # comment |
|
20 | > # comment | |
21 | > this line is ignored |
|
21 | > this line is ignored | |
22 | > EOF |
|
22 | > EOF | |
23 | $ hg convert --authors authormap.txt orig new |
|
23 | $ hg convert --authors authormap.txt orig new | |
24 | initializing destination new repository |
|
24 | initializing destination new repository | |
25 | ignoring bad line in author map file authormap.txt: this line is ignored |
|
25 | ignoring bad line in author map file authormap.txt: this line is ignored | |
26 | scanning source... |
|
26 | scanning source... | |
27 | sorting... |
|
27 | sorting... | |
28 | converting... |
|
28 | converting... | |
29 | 0 foo |
|
29 | 0 foo | |
30 | writing author map file $TESTTMP/new/.hg/authormap |
|
30 | writing author map file $TESTTMP/new/.hg/authormap (glob) | |
31 | $ cat new/.hg/authormap |
|
31 | $ cat new/.hg/authormap | |
32 | user name=Long User Name |
|
32 | user name=Long User Name | |
33 | $ hg -Rnew log |
|
33 | $ hg -Rnew log | |
34 | changeset: 0:d89716e88087 |
|
34 | changeset: 0:d89716e88087 | |
35 | tag: tip |
|
35 | tag: tip | |
36 | user: Long User Name |
|
36 | user: Long User Name | |
37 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
37 | date: Thu Jan 01 00:00:00 1970 +0000 | |
38 | summary: foo |
|
38 | summary: foo | |
39 |
|
39 | |||
40 | $ rm -rf new |
|
40 | $ rm -rf new | |
41 |
|
41 | |||
42 | Implicit .hg/authormap |
|
42 | Implicit .hg/authormap | |
43 |
|
43 | |||
44 | $ hg init new |
|
44 | $ hg init new | |
45 | $ mv authormap.txt new/.hg/authormap |
|
45 | $ mv authormap.txt new/.hg/authormap | |
46 | $ hg convert orig new |
|
46 | $ hg convert orig new | |
47 | ignoring bad line in author map file $TESTTMP/new/.hg/authormap: this line is ignored |
|
47 | ignoring bad line in author map file $TESTTMP/new/.hg/authormap: this line is ignored (glob) | |
48 | scanning source... |
|
48 | scanning source... | |
49 | sorting... |
|
49 | sorting... | |
50 | converting... |
|
50 | converting... | |
51 | 0 foo |
|
51 | 0 foo | |
52 | $ hg -Rnew log |
|
52 | $ hg -Rnew log | |
53 | changeset: 0:d89716e88087 |
|
53 | changeset: 0:d89716e88087 | |
54 | tag: tip |
|
54 | tag: tip | |
55 | user: Long User Name |
|
55 | user: Long User Name | |
56 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
56 | date: Thu Jan 01 00:00:00 1970 +0000 | |
57 | summary: foo |
|
57 | summary: foo | |
58 |
|
58 |
General Comments 0
You need to be logged in to leave comments.
Login now