from mercurial import ui localrepo iface ui ui quiet True interactive

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
>>> from mercurial import ui, localrepo
>>> iface = ui.ui(quiet=True, interactive=False)
>>> hgrep = localrepo.localrepository(iface, '/home/j2a/projects/mycode/hg_ydbf')
>>> changelog = hgrep.changelog
>>> changeset = changelog.read(changelog.node(1))
>>> changeset
<<<
('\x0fA\x1dw\xdf\xd1^S\xb8D\xfc\xfc\xeax4\x94\xf4\xa6\xe5\xf5',
'the.pythy',
(1169965083.0, 0),
['ydbf.py',
'ydbf/__init__.py',
'ydbf/__init__.py',
'ydbf/lib.py',
'ydbf/lib.py',
'ydbf/reader.py',
'ydbf/reader.py',
'ydbf/test.py',
'ydbf/test.py',
'ydbf/writer.py',
'ydbf/writer.py'],
'Split module to package\n',
{'branch': 'ydbf',
'convert_revision': 'svn:7561782b-2fed-4aaf-baf4-1021e0aad22a/mirror/svn/trunk/ydbf@65'})