##// END OF EJS Templates
tests: remove unneeded -d flags...
tests: remove unneeded -d flags Many tests fixed the commit date of their changesets at '1000000 0' or similar. However testing with "Mon Jan 12 13:46:40 1970 +0000" is not better than testing with "Thu Jan 01 00:00:00 1970 +0000", which is the default run-tests.py installs. Removing the unnecessary flag removes some clutter and will hopefully make it clearer what the tests are really trying to test. Some tests did not even change their output when the dates were changed, in which case the -d flag was truly irrelevant. Dates used in sequence (such as '0 0', '1 0', etc...) were left alone since they may make the test easier to understand.

File last commit:

r10119:bb5ea667 default
r12156:4c94b6d0 default
Show More
test-convert-darcs
75 lines | 1.6 KiB | text/plain | TextLexer
/ tests / test-convert-darcs
Patrick Mezard
Test darcs converter
r5413 #!/bin/sh
"$TESTDIR/hghave" darcs || exit 80
echo "[extensions]" >> $HGRCPATH
echo "convert=" >> $HGRCPATH
Martin Geisler
tests: load with "ext =" instead of "hgext.ext ="
r10119 echo 'graphlog =' >> $HGRCPATH
Patrick Mezard
Test darcs converter
r5413
DARCS_EMAIL='test@example.org'; export DARCS_EMAIL
Bryan O'Sullivan
Fix failing darcs test
r9326 HOME=`pwd`/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
Bryan O'Sullivan
Fix failing darcs test
r9326 sleep 1
Patrick Mezard
Test darcs converter
r5413 echo e > a
Patrick Mezard
convert/darcs: fix file renaming (issue1853)
r9526 echo f > f
Patrick Mezard
convert/darcs: handle directory renaming
r9527 mkdir dir
echo d > dir/d
echo d > dir/d2
Patrick Mezard
Test darcs converter
r5413 darcs record -a -l -m p2
Patrick Mezard
convert/darcs: fix file renaming (issue1853)
r9526
echo % test file and directory move
darcs mv f ff
Patrick Mezard
convert/darcs: handle directory renaming
r9527 # Test remove + move
darcs remove dir/d2
rm dir/d2
darcs mv dir dir2
Patrick Mezard
convert/darcs: fix file renaming (issue1853)
r9526 darcs record -a -l -m p3
Patrick Mezard
Test darcs converter
r5413 cd ..
glog()
{
Martin Geisler
tests: replace #...# syntax with {...}
r8523 hg glog --template '{rev} "{desc|firstline}" files: {files}\n' "$@"
Patrick Mezard
Test darcs converter
r5413 }
Bryan O'Sullivan
Fix failing darcs test
r9326 hg convert darcs-repo darcs-repo-hg
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