##// 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 def status(self, node1='.', node2=None, match=None, ignored=False,
78 def status(self, node1='.', node2=None, match=None, ignored=False,
79 clean=False, unknown=False, listsubrepos=False):
79 clean=False, unknown=False, listsubrepos=False):
80 listignored, listclean, listunknown = ignored, clean, unknown
80 listignored, listclean, listunknown = ignored, clean, unknown
81 orig = super(lfilesrepo, self).status
81 if not self.lfstatus:
82 if not self.lfstatus:
82 return super(lfilesrepo, self).status(node1, node2, match,
83 return orig(node1, node2, match, listignored, listclean,
83 listignored, listclean, listunknown, listsubrepos)
84 listunknown, listsubrepos)
84
85
85 # some calls in this function rely on the old version of status
86 # some calls in this function rely on the old version of status
86 self.lfstatus = False
87 self.lfstatus = False
@@ -120,9 +121,8 b' def reposetup(ui, repo):'
120 if match(f):
121 if match(f):
121 break
122 break
122 else:
123 else:
123 return super(lfilesrepo, self).status(node1, node2,
124 return orig(node1, node2, match, listignored, listclean,
124 match, listignored, listclean,
125 listunknown, listsubrepos)
125 listunknown, listsubrepos)
126
126
127 # Create a copy of match that matches standins instead
127 # Create a copy of match that matches standins instead
128 # of largefiles.
128 # of largefiles.
@@ -146,8 +146,8 b' def reposetup(ui, repo):'
146 m = copy.copy(match)
146 m = copy.copy(match)
147 m._files = tostandins(m._files)
147 m._files = tostandins(m._files)
148
148
149 result = super(lfilesrepo, self).status(node1, node2, m,
149 result = orig(node1, node2, m, ignored, clean, unknown,
150 ignored, clean, unknown, listsubrepos)
150 listsubrepos)
151 if working:
151 if working:
152
152
153 def sfindirstate(f):
153 def sfindirstate(f):
General Comments 0
You need to be logged in to leave comments. Login now