Mercurial > hg
comparison tests/test-convert-cvs @ 10095:69ce7a10e593
convert: implement two hooks in builtin cvsps
author | Frank Kingswood <frank@kingswood-consulting.co.uk> |
---|---|
date | Tue, 15 Dec 2009 10:37:23 +0000 |
parents | fc493cb90bb1 |
children | 6109a02c682b |
comparison
equal
deleted
inserted
replaced
10093:a43ae5777221 | 10095:69ce7a10e593 |
---|---|
14 | 14 |
15 echo "[extensions]" >> $HGRCPATH | 15 echo "[extensions]" >> $HGRCPATH |
16 echo "convert = " >> $HGRCPATH | 16 echo "convert = " >> $HGRCPATH |
17 echo "graphlog = " >> $HGRCPATH | 17 echo "graphlog = " >> $HGRCPATH |
18 | 18 |
19 cat > cvshooks.py <<EOF | |
20 def cvslog(ui,repo,hooktype,log): | |
21 print "%s hook: %d entries"%(hooktype,len(log)) | |
22 | |
23 def cvschangesets(ui,repo,hooktype,changesets): | |
24 print "%s hook: %d changesets"%(hooktype,len(changesets)) | |
25 EOF | |
26 hookpath=$PWD | |
27 | |
28 echo "[hooks]" >> $HGRCPATH | |
29 echo "cvslog=python:$hookpath/cvshooks.py:cvslog" >> $HGRCPATH | |
30 echo "cvschangesets=python:$hookpath/cvshooks.py:cvschangesets" >> $HGRCPATH | |
31 | |
19 echo % create cvs repository | 32 echo % create cvs repository |
20 mkdir cvsrepo | 33 mkdir cvsrepo |
21 cd cvsrepo | 34 cd cvsrepo |
22 CVSROOT=`pwd` | 35 CVSROOT=$PWD |
23 export CVSROOT | 36 export CVSROOT |
24 CVS_OPTIONS=-f | 37 CVS_OPTIONS=-f |
25 export CVS_OPTIONS | 38 export CVS_OPTIONS |
26 cd .. | 39 cd .. |
27 | 40 |