Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 27522:798535853345
localrepo: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 23 Dec 2015 12:30:14 -0800 |
parents | b64b6fdc5c9b |
children | dad6404ccddb |
comparison
equal
deleted
inserted
replaced
27521:b1adf32b0605 | 27522:798535853345 |
---|---|
2 # | 2 # |
3 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> | 3 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
4 # | 4 # |
5 # This software may be used and distributed according to the terms of the | 5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. | 6 # GNU General Public License version 2 or any later version. |
7 from node import hex, nullid, wdirrev, short | 7 |
8 from i18n import _ | 8 from __future__ import absolute_import |
9 | |
10 import errno | |
11 import inspect | |
12 import os | |
13 import random | |
14 import time | |
9 import urllib | 15 import urllib |
10 import peer, changegroup, subrepo, pushkey, obsolete, repoview | 16 import weakref |
11 import changelog, dirstate, filelog, manifest, context, bookmarks, phases | 17 |
12 import lock as lockmod | 18 from .i18n import _ |
13 import transaction, store, encoding, exchange, bundle2 | 19 from .node import ( |
14 import scmutil, util, extensions, hook, error, revset, cmdutil | 20 hex, |
15 import match as matchmod | 21 nullid, |
16 import merge as mergemod | 22 short, |
17 import tags as tagsmod | 23 wdirrev, |
18 from lock import release | 24 ) |
19 import weakref, errno, os, time, inspect, random | 25 from . import ( |
20 import branchmap, pathutil | 26 bookmarks, |
21 import namespaces | 27 branchmap, |
28 bundle2, | |
29 changegroup, | |
30 changelog, | |
31 cmdutil, | |
32 context, | |
33 dirstate, | |
34 encoding, | |
35 error, | |
36 exchange, | |
37 extensions, | |
38 filelog, | |
39 hook, | |
40 lock as lockmod, | |
41 manifest, | |
42 match as matchmod, | |
43 merge as mergemod, | |
44 namespaces, | |
45 obsolete, | |
46 pathutil, | |
47 peer, | |
48 phases, | |
49 pushkey, | |
50 repoview, | |
51 revset, | |
52 scmutil, | |
53 store, | |
54 subrepo, | |
55 tags as tagsmod, | |
56 transaction, | |
57 util, | |
58 ) | |
59 | |
60 release = lockmod.release | |
22 propertycache = util.propertycache | 61 propertycache = util.propertycache |
23 filecache = scmutil.filecache | 62 filecache = scmutil.filecache |
24 | 63 |
25 class repofilecache(filecache): | 64 class repofilecache(filecache): |
26 """All filecache usage on repo are done for logic that should be unfiltered | 65 """All filecache usage on repo are done for logic that should be unfiltered |