Mercurial > public > mercurial-scm > hg
comparison mercurial/unionrepo.py @ 25988:83f220c7d6f0
unionrepo: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 08 Aug 2015 20:13:11 -0700 |
parents | e4f75c93f073 |
children | 6b16a3538c20 |
comparison
equal
deleted
inserted
replaced
25987:c6d049a5de43 | 25988:83f220c7d6f0 |
---|---|
9 | 9 |
10 """Repository class for "in-memory pull" of one local repository to another, | 10 """Repository class for "in-memory pull" of one local repository to another, |
11 allowing operations like diff and log with revsets. | 11 allowing operations like diff and log with revsets. |
12 """ | 12 """ |
13 | 13 |
14 from node import nullid | 14 from __future__ import absolute_import |
15 from i18n import _ | 15 |
16 import os | 16 import os |
17 import util, mdiff, cmdutil, scmutil | 17 |
18 import localrepo, changelog, manifest, filelog, revlog, pathutil | 18 from .i18n import _ |
19 from .node import nullid | |
20 | |
21 from . import ( | |
22 changelog, | |
23 cmdutil, | |
24 filelog, | |
25 localrepo, | |
26 manifest, | |
27 mdiff, | |
28 pathutil, | |
29 revlog, | |
30 scmutil, | |
31 util, | |
32 ) | |
19 | 33 |
20 class unionrevlog(revlog.revlog): | 34 class unionrevlog(revlog.revlog): |
21 def __init__(self, opener, indexfile, revlog2, linkmapper): | 35 def __init__(self, opener, indexfile, revlog2, linkmapper): |
22 # How it works: | 36 # How it works: |
23 # To retrieve a revision, we just need to know the node id so we can | 37 # To retrieve a revision, we just need to know the node id so we can |