Show More
@@ -15,6 +15,7 b' from mercurial.i18n import _' | |||
|
15 | 15 | |
|
16 | 16 | from mercurial import ( |
|
17 | 17 | error, |
|
18 | extensions, | |
|
18 | 19 | localrepo, |
|
19 | 20 | match as matchmod, |
|
20 | 21 | scmutil, |
@@ -47,13 +48,14 b' def reposetup(ui, repo):' | |||
|
47 | 48 | ctx = super(lfilesrepo, self).__getitem__(changeid) |
|
48 | 49 | if self.lfstatus: |
|
49 | 50 | |
|
50 |
|
|
|
51 |
|
|
|
52 | filenames = super(lfilesctx, self).files() | |
|
51 | def files(orig): | |
|
52 | filenames = orig() | |
|
53 | 53 |
|
|
54 | 54 | |
|
55 | def manifest(self): | |
|
56 | man1 = super(lfilesctx, self).manifest() | |
|
55 | extensions.wrapfunction(ctx, 'files', files) | |
|
56 | ||
|
57 | def manifest(orig): | |
|
58 | man1 = orig() | |
|
57 | 59 | |
|
58 | 60 |
|
|
59 | 61 |
|
@@ -65,8 +67,9 b' def reposetup(ui, repo):' | |||
|
65 | 67 |
|
|
66 | 68 |
|
|
67 | 69 | |
|
68 | def filectx(self, path, fileid=None, filelog=None): | |
|
69 | orig = super(lfilesctx, self).filectx | |
|
70 | extensions.wrapfunction(ctx, 'manifest', manifest) | |
|
71 | ||
|
72 | def filectx(orig, path, fileid=None, filelog=None): | |
|
70 | 73 |
|
|
71 | 74 |
|
|
72 | 75 |
|
@@ -76,16 +79,15 b' def reposetup(ui, repo):' | |||
|
76 | 79 |
|
|
77 | 80 |
|
|
78 | 81 |
|
|
79 |
|
|
|
80 | lfutil.standin(path), fileid, filelog | |
|
81 | ) | |
|
82 | result = orig(lfutil.standin(path), fileid, filelog) | |
|
82 | 83 |
|
|
83 | 84 |
|
|
84 | 85 |
|
|
85 | 86 |
|
|
86 | 87 |
|
|
87 | 88 | |
|
88 | ctx.__class__ = lfilesctx | |
|
89 | extensions.wrapfunction(ctx, 'filectx', filectx) | |
|
90 | ||
|
89 | 91 | return ctx |
|
90 | 92 | |
|
91 | 93 | # Figure out the status of big files and insert them into the |
General Comments 0
You need to be logged in to leave comments.
Login now