##// END OF EJS Templates
dispatch: provide help for disabled extensions and commands...
dispatch: provide help for disabled extensions and commands Before a command is declared unknown, each extension in hgext is searched, starting with hgext.<cmdname>. If there's a matching command, a help message suggests the appropriate extension and how to enable it. Every extension could potentially be imported, but for cases like rebase, relink, etc. only one extension is imported. For the case of "hg help disabledext", if the extension is in hgext, the extension description is read and a similar help suggestion is printed. No extension import occurs.

File last commit:

r8167:6c82beaa default
r10364:de1e7099 default
Show More
test-convert-authormap
37 lines | 486 B | text/plain | TextLexer
/ tests / test-convert-authormap
Marti Raudsepp
convert: Add testcase for convert authormap.
r7961 #!/bin/sh
cat >> $HGRCPATH <<EOF
[extensions]
convert=
EOF
# Prepare orig repo
hg init orig
cd orig
echo foo > foo
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 HGUSER='user name' hg ci -qAm 'foo'
Marti Raudsepp
convert: Add testcase for convert authormap.
r7961 cd ..
# Explicit --authors
cat > authormap.txt <<EOF
user name = Long User Name
Marti Raudsepp
convert: fix authormap handling of lines without '='...
r7962
Marti Raudsepp
convert: handle comments starting with '#' in authormap files
r7968 # comment
Marti Raudsepp
convert: fix authormap handling of lines without '='...
r7962 this line is ignored
Marti Raudsepp
convert: Add testcase for convert authormap.
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