Mercurial > hg
comparison mercurial/bundlerepo.py @ 25920:5aaf51c14fea
bundlerepo: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 08 Aug 2015 00:36:35 -0700 |
parents | 5418dd5be8ac |
children | 1f0e78f8f55f |
comparison
equal
deleted
inserted
replaced
25919:8221fefaea08 | 25920:5aaf51c14fea |
---|---|
9 | 9 |
10 This provides a read-only repository interface to bundles as if they | 10 This provides a read-only repository interface to bundles as if they |
11 were part of the actual repository. | 11 were part of the actual repository. |
12 """ | 12 """ |
13 | 13 |
14 from node import nullid | 14 from __future__ import absolute_import |
15 from i18n import _ | 15 |
16 import os, tempfile, shutil | 16 import os |
17 import changegroup, util, mdiff, discovery, cmdutil, scmutil, exchange | 17 import shutil |
18 import localrepo, changelog, manifest, filelog, revlog, error, phases, bundle2 | 18 import tempfile |
19 import pathutil | 19 |
20 from .i18n import _ | |
21 from .node import nullid | |
22 | |
23 from . import ( | |
24 bundle2, | |
25 changegroup, | |
26 changelog, | |
27 cmdutil, | |
28 discovery, | |
29 error, | |
30 exchange, | |
31 filelog, | |
32 localrepo, | |
33 manifest, | |
34 mdiff, | |
35 pathutil, | |
36 phases, | |
37 revlog, | |
38 scmutil, | |
39 util, | |
40 ) | |
20 | 41 |
21 class bundlerevlog(revlog.revlog): | 42 class bundlerevlog(revlog.revlog): |
22 def __init__(self, opener, indexfile, bundle, linkmapper): | 43 def __init__(self, opener, indexfile, bundle, linkmapper): |
23 # How it works: | 44 # How it works: |
24 # To retrieve a revision, we need to know the offset of the revision in | 45 # To retrieve a revision, we need to know the offset of the revision in |