##// 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:

r8692:827d4e80 default
r10364:de1e7099 default
Show More
test-convert-datesort
45 lines | 773 B | text/plain | TextLexer
/ tests / test-convert-datesort
Patrick Mezard
convert: fix --datesort ordering...
r6100 #!/bin/sh
cat >> $HGRCPATH <<EOF
[extensions]
convert=
graphlog=
EOF
hg init t
cd t
echo a >> a
hg ci -Am a0 -d '1 0'
hg branch brancha
echo a >> a
hg ci -m a1 -d '2 0'
echo a >> a
hg ci -m a2 -d '3 0'
echo a >> a
hg ci -m a3 -d '4 0'
hg up -C 0
hg branch branchb
echo b >> b
Patrick Mezard
convert: add --sourcesort option for source specific sort...
r8690 hg ci -Am b0 -d '6 0'
Patrick Mezard
convert: fix --datesort ordering...
r6100 hg up -C brancha
echo a >> a
Patrick Mezard
convert: add --sourcesort option for source specific sort...
r8690 hg ci -m a4 -d '5 0'
Patrick Mezard
convert: fix --datesort ordering...
r6100 echo a >> a
hg ci -m a5 -d '7 0'
echo a >> a
hg ci -m a6 -d '8 0'
hg up -C branchb
echo b >> b
hg ci -m b1 -d '9 0'
cd ..
echo % convert with datesort
Patrick Mezard
convert: add --sourcesort option for source specific sort...
r8690 hg convert --datesort t t-datesort
Patrick Mezard
convert: fix --datesort ordering...
r6100 echo % graph converted repo
Patrick Mezard
convert: add --sourcesort option for source specific sort...
r8690 hg -R t-datesort glog --template '{rev} "{desc}"\n'
Patrick Mezard
convert: fix --datesort ordering...
r6100
Patrick Mezard
convert: default revisions order depends on source...
r8692 echo '% convert with datesort (default mode)'
hg convert t t-sourcesort
Patrick Mezard
convert: add --sourcesort option for source specific sort...
r8690 echo % graph converted repo
hg -R t-sourcesort glog --template '{rev} "{desc}"\n'