test-convert-authormap
37 lines
| 486 B
| text/plain
|
TextLexer
/ tests / test-convert-authormap
Marti Raudsepp
|
r7961 | #!/bin/sh | ||
cat >> $HGRCPATH <<EOF | ||||
[extensions] | ||||
convert= | ||||
EOF | ||||
# Prepare orig repo | ||||
hg init orig | ||||
cd orig | ||||
echo foo > foo | ||||
Martin Geisler
|
r8167 | HGUSER='user name' hg ci -qAm 'foo' | ||
Marti Raudsepp
|
r7961 | cd .. | ||
# Explicit --authors | ||||
cat > authormap.txt <<EOF | ||||
user name = Long User Name | ||||
Marti Raudsepp
|
r7962 | |||
Marti Raudsepp
|
r7968 | # comment | ||
Marti Raudsepp
|
r7962 | this line is ignored | ||
Marti Raudsepp
|
r7961 | EOF | ||
hg convert --authors authormap.txt orig new | ||||
echo $? | ||||
cat new/.hg/authormap | ||||
hg -Rnew log | ||||
rm -rf new | ||||
# Implicit .hg/authormap | ||||
hg init new | ||||
mv authormap.txt new/.hg/authormap | ||||
hg convert orig new | ||||
echo $? | ||||
hg -Rnew log | ||||