Mercurial > hg
comparison hgext/largefiles/overrides.py @ 17191:5884812686f7
peer: introduce peer methods to prepare for peer classes
This introduces a peer method into all repository classes, which currently
simply returns self. It also changes hg.repository so it now raises an
exception if the supplied paths does not resolve to a localrepo or descendant.
Finally, all call sites are changed to use the peer and local methods as
appropriate, where peer is used whenever the code is dealing with a remote
repository (even if it's on local disk).
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Fri, 13 Jul 2012 21:46:53 +0200 |
parents | 1894dac619de |
children | a6d9b2d33040 |
comparison
equal
deleted
inserted
replaced
17190:d99d0b559084 | 17191:5884812686f7 |
---|---|
720 branch=opts.get('branch')) | 720 branch=opts.get('branch')) |
721 if result is None: | 721 if result is None: |
722 return True | 722 return True |
723 if opts.get('all_largefiles'): | 723 if opts.get('all_largefiles'): |
724 sourcerepo, destrepo = result | 724 sourcerepo, destrepo = result |
725 success, missing = lfcommands.downloadlfiles(ui, destrepo, None) | 725 success, missing = lfcommands.downloadlfiles(ui, destrepo.local(), None) |
726 return missing != 0 | 726 return missing != 0 |
727 return result is None | 727 return result is None |
728 | 728 |
729 def overriderebase(orig, ui, repo, **opts): | 729 def overriderebase(orig, ui, repo, **opts): |
730 repo._isrebasing = True | 730 repo._isrebasing = True |