comparison hgfastobs.py @ 798:eb0d18490c14

drop unused function `pushmarkerwrapper` I can find any user for this function.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 18 Feb 2014 15:30:54 -0800
parents 443e563f0943
children a398478e8d86
comparison
equal deleted inserted replaced
797:2f9ea881591a 798:eb0d18490c14
44 def syncpushwrapper(orig, repo, remote): 44 def syncpushwrapper(orig, repo, remote):
45 stratfn = _strategies[repo.ui.config('obsolete', 'syncstrategy')] 45 stratfn = _strategies[repo.ui.config('obsolete', 'syncstrategy')]
46 return stratfn(repo, remote) 46 return stratfn(repo, remote)
47 47
48 extensions.wrapfunction(obsolete, 'syncpush', syncpushwrapper) 48 extensions.wrapfunction(obsolete, 'syncpush', syncpushwrapper)
49
50 def pushmarkerwrapper(orig, repo, *args):
51 if repo.ui.config('obsolete', 'syncstrategy') == 'stock':
52 return orig(repo, *args)
53 # We shouldn't need to do this, since we transmit markers
54 # effectively during push in localrepo. Just return success.
55 return 1
56 49
57 def _getoutgoing(): 50 def _getoutgoing():
58 f = sys._getframe(4) 51 f = sys._getframe(4)
59 return f.f_locals['outgoing'] 52 return f.f_locals['outgoing']
60 53