tests/test-template-functions.t
changeset 42000 a66965406528
parent 41997 4df7c4b70e03
child 42480 b6387a65851d
equal deleted inserted replaced
41999:ba064f95175e 42000:a66965406528
  1497 
  1497 
  1498 Test cbor filter:
  1498 Test cbor filter:
  1499 
  1499 
  1500   $ cat <<'EOF' > "$TESTTMP/decodecbor.py"
  1500   $ cat <<'EOF' > "$TESTTMP/decodecbor.py"
  1501   > from __future__ import absolute_import
  1501   > from __future__ import absolute_import
  1502   > from mercurial import pycompat
  1502   > from mercurial import (
       
  1503   >     dispatch,
       
  1504   >     pycompat,
       
  1505   > )
  1503   > from mercurial.utils import (
  1506   > from mercurial.utils import (
  1504   >     cborutil,
  1507   >     cborutil,
  1505   >     stringutil,
  1508   >     stringutil,
  1506   > )
  1509   > )
       
  1510   > dispatch.initstdio()
  1507   > items = cborutil.decodeall(pycompat.stdin.read())
  1511   > items = cborutil.decodeall(pycompat.stdin.read())
  1508   > pycompat.stdout.write(stringutil.pprint(items, indent=1) + b'\n')
  1512   > pycompat.stdout.write(stringutil.pprint(items, indent=1) + b'\n')
  1509   > EOF
  1513   > EOF
  1510 
  1514 
  1511   $ hg log -T "{rev|cbor}" -R a -l2 | "$PYTHON" "$TESTTMP/decodecbor.py"
  1515   $ hg log -T "{rev|cbor}" -R a -l2 | "$PYTHON" "$TESTTMP/decodecbor.py"