Mercurial > hg
comparison tests/test-filelog.py @ 29205:a0939666b836
py3: move up symbol imports to enforce import-checker rules
Since (b) is banned, we should do the same for (a) for consistency.
a) from mercurial import hg
from mercurial.i18n import _
b) from . import hg
from .i18n import _
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 14 May 2016 14:03:12 +0900 |
parents | efc739551c17 |
children | d83ca854fa21 |
comparison
equal
deleted
inserted
replaced
29204:ce2d81aafbae | 29205:a0939666b836 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 """ | 2 """ |
3 Tests the behavior of filelog w.r.t. data starting with '\1\n' | 3 Tests the behavior of filelog w.r.t. data starting with '\1\n' |
4 """ | 4 """ |
5 from __future__ import absolute_import, print_function | 5 from __future__ import absolute_import, print_function |
6 | |
7 from mercurial.node import ( | |
8 hex, | |
9 nullid, | |
10 ) | |
6 from mercurial import ( | 11 from mercurial import ( |
7 hg, | 12 hg, |
8 ui as uimod, | 13 ui as uimod, |
9 ) | |
10 from mercurial.node import ( | |
11 hex, | |
12 nullid, | |
13 ) | 14 ) |
14 | 15 |
15 myui = uimod.ui() | 16 myui = uimod.ui() |
16 repo = hg.repository(myui, path='.', create=True) | 17 repo = hg.repository(myui, path='.', create=True) |
17 | 18 |