Mercurial > hg-stable
changeset 22518:52dd6e25121f
largefiles: extract 'orig' method in reposetup.status
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Tue, 16 Sep 2014 14:51:56 -0700 |
parents | e54a001ace06 |
children | c87f2a5a6e49 |
files | hgext/largefiles/reposetup.py |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py Tue Sep 16 14:51:25 2014 -0700 +++ b/hgext/largefiles/reposetup.py Tue Sep 16 14:51:56 2014 -0700 @@ -78,9 +78,10 @@ def status(self, node1='.', node2=None, match=None, ignored=False, clean=False, unknown=False, listsubrepos=False): listignored, listclean, listunknown = ignored, clean, unknown + orig = super(lfilesrepo, self).status if not self.lfstatus: - return super(lfilesrepo, self).status(node1, node2, match, - listignored, listclean, listunknown, listsubrepos) + return orig(node1, node2, match, listignored, listclean, + listunknown, listsubrepos) # some calls in this function rely on the old version of status self.lfstatus = False @@ -120,9 +121,8 @@ if match(f): break else: - return super(lfilesrepo, self).status(node1, node2, - match, listignored, listclean, - listunknown, listsubrepos) + return orig(node1, node2, match, listignored, listclean, + listunknown, listsubrepos) # Create a copy of match that matches standins instead # of largefiles. @@ -146,8 +146,8 @@ m = copy.copy(match) m._files = tostandins(m._files) - result = super(lfilesrepo, self).status(node1, node2, m, - ignored, clean, unknown, listsubrepos) + result = orig(node1, node2, m, ignored, clean, unknown, + listsubrepos) if working: def sfindirstate(f):