##// END OF EJS Templates
ui: refactor option setting...
ui: refactor option setting No more passing options as constructor keywords. Basic options are now always stored in the overlay for simplicity and consistency.

File last commit:

r7425:14ed6662 default
r8136:6b5522cb default
Show More
test-convert-darcs
68 lines | 1.6 KiB | text/plain | TextLexer
/ tests / test-convert-darcs
Patrick Mezard
Test darcs converter
r5413 #!/bin/sh
"$TESTDIR/hghave" darcs || exit 80
Mads Kiilerich
tests: disable test-convert-darcs properly for darcs 2...
r7425 if darcs --version 2>&1 | grep '^2\.' > /dev/null; then
# FIXME: darcs 2 will fail with
### Abort: timeout after 180 seconds.
echo 'skipped: test currently disabled for darcs 2'
exit 80
fi
Patrick Mezard
Test darcs converter
r5413
echo "[extensions]" >> $HGRCPATH
echo "convert=" >> $HGRCPATH
echo 'hgext.graphlog =' >> $HGRCPATH
DARCS_EMAIL='test@example.org'; export DARCS_EMAIL
Bryan O'Sullivan
test-convert-darcs: don't let $HOME/.darcs pollute the test environment
r5442 HOME=do_not_use_HOME_darcs; export HOME
Patrick Mezard
Test darcs converter
r5413
Alexis S. L. Carvalho
test-convert-darcs: skip if we can't find the elementtree module...
r5520 # skip if we can't import elementtree
mkdir dummy
mkdir dummy/_darcs
if hg convert dummy 2>&1 | grep ElementTree > /dev/null; then
Thomas Arendsen Hein
Use skipped: instead of hghave: for skipping tests, use this in test-merge-types
r5685 echo 'skipped: missing feature: elementtree module'
Alexis S. L. Carvalho
test-convert-darcs: skip if we can't find the elementtree module...
r5520 exit 80
fi
Patrick Mezard
Test darcs converter
r5413 echo % initialize darcs repo
mkdir darcs-repo
cd darcs-repo
darcs init
echo a > a
darcs record -a -l -m p0
cd ..
echo % branch and update
Thomas Arendsen Hein
Fix test-convert-darcs output on Debian etch (issue779)...
r5667 darcs get darcs-repo darcs-clone >/dev/null
Patrick Mezard
Test darcs converter
r5413 cd darcs-clone
echo c >> a
echo c > c
darcs record -a -l -m p1.1
cd ..
echo % update source
cd darcs-repo
echo b >> a
echo b > b
darcs record -a -l -m p1.2
echo % merge branch
darcs pull -a ../darcs-clone
echo e > a
darcs record -a -l -m p2
cd ..
glog()
{
hg glog --template '#rev# "#desc|firstline#" files: #files#\n' "$@"
}
Thomas Arendsen Hein
Fix test-convert-darcs output on Debian etch (issue779)...
r5667 hg convert darcs-repo darcs-repo-hg 2>&1 | grep -v hGetLine | grep -v '^$'
Patrick Mezard
Test darcs converter
r5413 # The converter does not currently handle patch conflicts very well.
# When they occur, it reverts *all* changes and moves forward,
# letting the conflict resolving patch fix collisions.
# Unfortunately, non-conflicting changes, like the addition of the
# "c" file in p1.1 patch are reverted too.
# Just to say that manifest not listing "c" here is a bug.
glog -R darcs-repo-hg
Patrick Mezard
Fix tests failures introduced by 7239e06e58e9
r6799 hg up -q -R darcs-repo-hg
Patrick Mezard
Test darcs converter
r5413 hg -R darcs-repo-hg manifest --debug