Mercurial > hg
comparison tests/test-convert-cvs @ 7101:e786192d995d
convert: make built-in cvsps the default
Reviewed by Frank Kingswood <frank@kingswood-consulting.co.uk>
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 15 Oct 2008 20:14:28 +0200 |
parents | 2011bb8ada9a |
children | 18048153fd4e |
comparison
equal
deleted
inserted
replaced
7100:baf12d52add4 | 7101:e786192d995d |
---|---|
10 hgcat() | 10 hgcat() |
11 { | 11 { |
12 hg --cwd src-hg cat -r tip "$1" | 12 hg --cwd src-hg cat -r tip "$1" |
13 } | 13 } |
14 | 14 |
15 # Test legacy configuration with external cvsps | |
15 echo "[extensions]" >> $HGRCPATH | 16 echo "[extensions]" >> $HGRCPATH |
16 echo "convert = " >> $HGRCPATH | 17 echo "convert = " >> $HGRCPATH |
18 echo "graphlog = " >> $HGRCPATH | |
19 echo "[convert]" >> $HGRCPATH | |
20 echo "cvsps=cvsps -A -u --cvs-direct -q" >> $HGRCPATH | |
17 | 21 |
18 echo % create cvs repository | 22 echo % create cvs repository |
19 mkdir cvsrepo | 23 mkdir cvsrepo |
20 cd cvsrepo | 24 cd cvsrepo |
21 export CVSROOT=`pwd` | 25 export CVSROOT=`pwd` |
94 | 98 |
95 echo % convert again with --filemap | 99 echo % convert again with --filemap |
96 hg convert --filemap filemap src src-filemap | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g' | 100 hg convert --filemap filemap src src-filemap | sed -e 's/connecting to.*cvsrepo/connecting to cvsrepo/g' |
97 hgcat b/c | 101 hgcat b/c |
98 hg -R src-filemap log --template '#rev# #desc# files: #files#\n' | 102 hg -R src-filemap log --template '#rev# #desc# files: #files#\n' |
99 | |
100 echo "graphlog = " >> $HGRCPATH | |
101 hg -R src-hg glog --template '#rev# (#branches#) #desc# files: #files#\n' | 103 hg -R src-hg glog --template '#rev# (#branches#) #desc# files: #files#\n' |