tests/test-parseindex.t
changeset 40369 ef6cab7930b3
parent 39723 5abc47d4ca6b
child 40457 9cdd525d97b2
equal deleted inserted replaced
40368:fad6068249d9 40369:ef6cab7930b3
    25   date:        Thu Jan 01 00:00:00 1970 +0000
    25   date:        Thu Jan 01 00:00:00 1970 +0000
    26   summary:     change foo
    26   summary:     change foo
    27   
    27   
    28   $ cat >> test.py << EOF
    28   $ cat >> test.py << EOF
    29   > from __future__ import print_function
    29   > from __future__ import print_function
    30   > from mercurial import changelog, vfs
    30   > from mercurial import changelog, node, vfs
    31   > from mercurial.node import *
       
    32   > 
    31   > 
    33   > class singlebyteread(object):
    32   > class singlebyteread(object):
    34   >     def __init__(self, real):
    33   >     def __init__(self, real):
    35   >         self.real = real
    34   >         self.real = real
    36   > 
    35   > 
    57   >     return wrapper
    56   >     return wrapper
    58   > 
    57   > 
    59   > cl = changelog.changelog(opener('.hg/store'))
    58   > cl = changelog.changelog(opener('.hg/store'))
    60   > print(len(cl), 'revisions:')
    59   > print(len(cl), 'revisions:')
    61   > for r in cl:
    60   > for r in cl:
    62   >     print(short(cl.node(r)))
    61   >     print(node.short(cl.node(r)))
    63   > EOF
    62   > EOF
    64   $ "$PYTHON" test.py
    63   $ "$PYTHON" test.py
    65   2 revisions:
    64   2 revisions:
    66   7c31755bf9b5
    65   7c31755bf9b5
    67   26333235a41c
    66   26333235a41c