comparison tests/test-convert-authormap @ 7961:52e442fe43f4

convert: Add testcase for convert authormap.
author Marti Raudsepp <marti@juffo.org>
date Sat, 14 Mar 2009 14:31:08 +0200
parents
children 62154415821f
comparison
equal deleted inserted replaced
7960:5c794e7331e7 7961:52e442fe43f4
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