Show More
@@ -8,10 +8,8 b'' | |||
|
8 | 8 | from __future__ import absolute_import |
|
9 | 9 | |
|
10 | 10 | from mercurial import ( |
|
11 | bundlerepo, | |
|
12 | 11 | changegroup, |
|
13 | 12 | hg, |
|
14 | localrepo, | |
|
15 | 13 | narrowspec, |
|
16 | 14 | scmutil, |
|
17 | 15 | ) |
@@ -40,14 +38,6 b' def unsharenarrowspec(orig, ui, repo, re' | |||
|
40 | 38 | def wraprepo(repo): |
|
41 | 39 | """Enables narrow clone functionality on a single local repository.""" |
|
42 | 40 | |
|
43 | cacheprop = localrepo.storecache | |
|
44 | if isinstance(repo, bundlerepo.bundlerepository): | |
|
45 | # We have to use a different caching property decorator for | |
|
46 | # bundlerepo because storecache blows up in strange ways on a | |
|
47 | # bundlerepo. Fortunately, there's no risk of data changing in | |
|
48 | # a bundlerepo. | |
|
49 | cacheprop = lambda name: localrepo.unfilteredpropertycache | |
|
50 | ||
|
51 | 41 | class narrowrepository(repo.__class__): |
|
52 | 42 | |
|
53 | 43 | def file(self, f): |
General Comments 0
You need to be logged in to leave comments.
Login now