mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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:
parent
bd577925d9
commit
4d88e89c3e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user