##// END OF EJS Templates
patch: support diff data loss detection and upgrade...
patch: support diff data loss detection and upgrade In worst case, generating diff in upgrade mode can be two times more expensive than generating it in git mode directly: we may have to regenerate the whole diff again whenever a git feature is detected. Also, the first diff attempt is completely buffered instead of being streamed. That said, even without having profiled it yet, I am convinced we can fast-path the upgrade mode if necessary were it to be used in regular diff commands, and not only in mq where avoiding data loss is worth the price.

File last commit:

r10119:bb5ea667 default
r10189:e451e599 default
Show More
test-convert-tla
73 lines | 1.6 KiB | text/plain | TextLexer
Aleix Conchillo Flaque
convert: added GNU Arch (tla) tests and related fixes
r6079 #!/bin/sh
"$TESTDIR/hghave" tla || exit 80
Patrick Mezard
Define tla username locally in baz and tla tests...
r6101 mkdir do_not_use_HOME_tla
cd do_not_use_HOME_tla
HOME=`pwd`; export HOME
cd ..
tla my-id "mercurial <mercurial@selenic.com>"
Patrick Mezard
Document and fix tla/baz conversion tests
r6084
Aleix Conchillo Flaque
convert: added GNU Arch (tla) tests and related fixes
r6079 echo "[extensions]" >> $HGRCPATH
echo "convert=" >> $HGRCPATH
Martin Geisler
tests: load with "ext =" instead of "hgext.ext ="
r10119 echo 'graphlog =' >> $HGRCPATH
Aleix Conchillo Flaque
convert: added GNU Arch (tla) tests and related fixes
r6079
echo % create tla archive
tla make-archive tla@mercurial--convert `pwd`/hg-test-convert-tla
echo % initialize tla repo
mkdir tla-repo
cd tla-repo/
tla init-tree tla@mercurial--convert/tla--test--0
tla import
echo % create initial files
echo 'this is a file' > a
tla add a
mkdir src
tla add src
cd src
dd count=1 if=/dev/zero of=b > /dev/null 2> /dev/null
tla add b
tla commit -s "added a file, src and src/b (binary)"
echo % create link file and modify a
ln -s ../a a-link
tla add a-link
echo 'this a modification to a' >> ../a
tla commit -s "added link to a and modify a"
echo % create second link and modify b
ln -s ../a a-link-2
tla add a-link-2
dd count=1 seek=1 if=/dev/zero of=b > /dev/null 2> /dev/null
tla commit -s "added second link and modify b"
echo % b file to link and a-link-2 to regular file
rm -f a-link-2
echo 'this is now a regular file' > a-link-2
ln -sf ../a b
tla commit -s "file to link and link to file test"
echo % move a-link-2 file and src directory
cd ..
tla mv src/a-link-2 c
tla mv src test
tla commit -s "move and rename a-link-2 file and src directory"
cd ..
echo % converting tla repo to Mercurial
hg convert tla-repo tla-repo-hg
tla register-archive -d tla@mercurial--convert
glog()
{
Martin Geisler
tests: replace #...# syntax with {...}
r8523 hg glog --template '{rev} "{desc|firstline}" files: {files}\n' "$@"
Aleix Conchillo Flaque
convert: added GNU Arch (tla) tests and related fixes
r6079 }
echo % show graph log
glog -R tla-repo-hg
Patrick Mezard
Fix tests failures introduced by 7239e06e58e9
r6799 hg up -q -R tla-repo-hg
Aleix Conchillo Flaque
convert: added GNU Arch (tla) tests and related fixes
r6079 hg -R tla-repo-hg manifest --debug