##// END OF EJS Templates
largefiles: extract 'orig' method in reposetup.status
Martin von Zweigbergk -
r22518:52dd6e25 default
parent child Browse files
Show More
@@ -78,9 +78,10 b' def reposetup(ui, repo):'
78 78 def status(self, node1='.', node2=None, match=None, ignored=False,
79 79 clean=False, unknown=False, listsubrepos=False):
80 80 listignored, listclean, listunknown = ignored, clean, unknown
81 orig = super(lfilesrepo, self).status
81 82 if not self.lfstatus:
82 return super(lfilesrepo, self).status(node1, node2, match,
83 listignored, listclean, listunknown, listsubrepos)
83 return orig(node1, node2, match, listignored, listclean,
84 listunknown, listsubrepos)
84 85
85 86 # some calls in this function rely on the old version of status
86 87 self.lfstatus = False
@@ -120,9 +121,8 b' def reposetup(ui, repo):'
120 121 if match(f):
121 122 break
122 123 else:
123 return super(lfilesrepo, self).status(node1, node2,
124 match, listignored, listclean,
125 listunknown, listsubrepos)
124 return orig(node1, node2, match, listignored, listclean,
125 listunknown, listsubrepos)
126 126
127 127 # Create a copy of match that matches standins instead
128 128 # of largefiles.
@@ -146,8 +146,8 b' def reposetup(ui, repo):'
146 146 m = copy.copy(match)
147 147 m._files = tostandins(m._files)
148 148
149 result = super(lfilesrepo, self).status(node1, node2, m,
150 ignored, clean, unknown, listsubrepos)
149 result = orig(node1, node2, m, ignored, clean, unknown,
150 listsubrepos)
151 151 if working:
152 152
153 153 def sfindirstate(f):
General Comments 0
You need to be logged in to leave comments. Login now