Mercurial > hg
comparison tests/test-convert-cvs.t @ 41738:c70bdd222dcd
tests: bulk changes to avoid whitespace errors of check-code.py
This is a part of preparation to apply checking with check-code.py on
code fragments embedded in *.t test scripts.
This revision avoids "whitespace" errors of check-code.py below:
- missing whitespace after ","
- missing whitespace in expression
- no whitespace around "=" for named parameters
- wrong whitespace around "="
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 18 Feb 2019 00:27:25 +0900 |
parents | cf76642cb2bb |
children | e5e5ee2b60e4 |
comparison
equal
deleted
inserted
replaced
41737:cab32f08c994 | 41738:c70bdd222dcd |
---|---|
9 > hg --cwd src-hg cat -r tip "$1" | 9 > hg --cwd src-hg cat -r tip "$1" |
10 > } | 10 > } |
11 $ echo "[extensions]" >> $HGRCPATH | 11 $ echo "[extensions]" >> $HGRCPATH |
12 $ echo "convert = " >> $HGRCPATH | 12 $ echo "convert = " >> $HGRCPATH |
13 $ cat > cvshooks.py <<EOF | 13 $ cat > cvshooks.py <<EOF |
14 > def cvslog(ui,repo,hooktype,log): | 14 > def cvslog(ui, repo, hooktype, log): |
15 > ui.write(b'%s hook: %d entries\n' % (hooktype,len(log))) | 15 > ui.write(b'%s hook: %d entries\n' % (hooktype, len(log))) |
16 > | 16 > |
17 > def cvschangesets(ui,repo,hooktype,changesets): | 17 > def cvschangesets(ui, repo, hooktype, changesets): |
18 > ui.write(b'%s hook: %d changesets\n' % (hooktype,len(changesets))) | 18 > ui.write(b'%s hook: %d changesets\n' % (hooktype, len(changesets))) |
19 > EOF | 19 > EOF |
20 $ hookpath=`pwd` | 20 $ hookpath=`pwd` |
21 $ cat <<EOF >> $HGRCPATH | 21 $ cat <<EOF >> $HGRCPATH |
22 > [hooks] | 22 > [hooks] |
23 > cvslog = python:$hookpath/cvshooks.py:cvslog | 23 > cvslog = python:$hookpath/cvshooks.py:cvslog |