equal
deleted
inserted
replaced
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 |