Backout fb666f865e02 so we can deploy

fb666f865e02 fixed gitlookup to work with upstream Mercurial, but we aren't
ready to deploy upstream Mercurial yet.  So I'm backing it out so we can deploy
the fb-hgext rpms in the mean time.
This commit is contained in:
Durham Goode 2014-10-10 11:06:19 -07:00
parent bd577925d9
commit 4d88e89c3e

View File

@ -96,10 +96,9 @@ def gitgetmeta(ui, repo, source='default'):
gitmetafiles = set(['git-mapfile', 'git-tags', 'git-remote-refs'])
@exchange.getbundle2partsgenerator('gitmeta')
def _getbundlegitmetapart(bundler, repo, source, bundlecaps=None, **kwargs):
def _getbundleextrapart(orig, bundler, repo, source, **kwargs):
'''send git metadata via bundle2'''
if 'fb_gitmeta' in bundlecaps:
if 'fb_gitmeta' in kwargs['bundlecaps']:
for fname in sorted(gitmetafiles):
try:
f = repo.opener(fname)
@ -132,4 +131,6 @@ def bundle2getgitmeta(op, part):
def extsetup(ui):
wrapwireprotocommand('lookup', remotelookup)
extensions.wrapfunction(exchange, '_getbundleextrapart',
_getbundleextrapart)