Show More
@@ -0,0 +1,34 b'' | |||||
|
1 | #!/bin/sh | |||
|
2 | ||||
|
3 | cat >> $HGRCPATH <<EOF | |||
|
4 | [extensions] | |||
|
5 | convert= | |||
|
6 | EOF | |||
|
7 | ||||
|
8 | # Prepare orig repo | |||
|
9 | hg init orig | |||
|
10 | cd orig | |||
|
11 | echo foo > foo | |||
|
12 | HGUSER='user name' hg ci -qAm 'foo' -d '0 0' | |||
|
13 | cd .. | |||
|
14 | ||||
|
15 | # Explicit --authors | |||
|
16 | cat > authormap.txt <<EOF | |||
|
17 | user name = Long User Name | |||
|
18 | EOF | |||
|
19 | ||||
|
20 | hg convert --authors authormap.txt orig new | |||
|
21 | echo $? | |||
|
22 | cat new/.hg/authormap | |||
|
23 | ||||
|
24 | hg -Rnew log | |||
|
25 | rm -rf new | |||
|
26 | ||||
|
27 | # Implicit .hg/authormap | |||
|
28 | hg init new | |||
|
29 | mv authormap.txt new/.hg/authormap | |||
|
30 | ||||
|
31 | hg convert orig new | |||
|
32 | echo $? | |||
|
33 | ||||
|
34 | hg -Rnew log |
@@ -0,0 +1,25 b'' | |||||
|
1 | initializing destination new repository | |||
|
2 | scanning source... | |||
|
3 | sorting... | |||
|
4 | converting... | |||
|
5 | 0 foo | |||
|
6 | Writing author map file new/.hg/authormap | |||
|
7 | 0 | |||
|
8 | user name=Long User Name | |||
|
9 | changeset: 0:d89716e88087 | |||
|
10 | tag: tip | |||
|
11 | user: Long User Name | |||
|
12 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
13 | summary: foo | |||
|
14 | ||||
|
15 | scanning source... | |||
|
16 | sorting... | |||
|
17 | converting... | |||
|
18 | 0 foo | |||
|
19 | 0 | |||
|
20 | changeset: 0:d89716e88087 | |||
|
21 | tag: tip | |||
|
22 | user: Long User Name | |||
|
23 | date: Thu Jan 01 00:00:00 1970 +0000 | |||
|
24 | summary: foo | |||
|
25 |
General Comments 0
You need to be logged in to leave comments.
Login now