equal
deleted
inserted
replaced
190 |
190 |
191 $ hg init unstable-hash |
191 $ hg init unstable-hash |
192 $ cd unstable-hash |
192 $ cd unstable-hash |
193 $ hg log --template '{date|age}\n' > /dev/null || exit 1 |
193 $ hg log --template '{date|age}\n' > /dev/null || exit 1 |
194 |
194 |
195 >>> from __future__ import absolute_import |
|
196 >>> import datetime |
195 >>> import datetime |
197 >>> fp = open('a', 'wb') |
196 >>> fp = open('a', 'wb') |
198 >>> n = datetime.datetime.now() + datetime.timedelta(366 * 7) |
197 >>> n = datetime.datetime.now() + datetime.timedelta(366 * 7) |
199 >>> fp.write(b'%d-%d-%d 00:00' % (n.year, n.month, n.day)) and None |
198 >>> fp.write(b'%d-%d-%d 00:00' % (n.year, n.month, n.day)) and None |
200 >>> fp.close() |
199 >>> fp.close() |
1570 1300000.00 |
1569 1300000.00 |
1571 |
1570 |
1572 Test cbor filter: |
1571 Test cbor filter: |
1573 |
1572 |
1574 $ cat <<'EOF' > "$TESTTMP/decodecbor.py" |
1573 $ cat <<'EOF' > "$TESTTMP/decodecbor.py" |
1575 > from __future__ import absolute_import |
|
1576 > from mercurial import ( |
1574 > from mercurial import ( |
1577 > dispatch, |
1575 > dispatch, |
1578 > ) |
1576 > ) |
1579 > from mercurial.utils import ( |
1577 > from mercurial.utils import ( |
1580 > cborutil, |
1578 > cborutil, |