mercurial/wireproto.py
changeset 20915 6aae815f3e0d
parent 20914 d81b518a1862
child 20916 31eacf182f80
equal deleted inserted replaced
20914:d81b518a1862 20915:6aae815f3e0d
   592 def debugwireargs(repo, proto, one, two, others):
   592 def debugwireargs(repo, proto, one, two, others):
   593     # only accept optional args from the known set
   593     # only accept optional args from the known set
   594     opts = options('debugwireargs', ['three', 'four'], others)
   594     opts = options('debugwireargs', ['three', 'four'], others)
   595     return repo.debugwireargs(one, two, **opts)
   595     return repo.debugwireargs(one, two, **opts)
   596 
   596 
       
   597 @wireprotocommand('getbundle', '*')
   597 def getbundle(repo, proto, others):
   598 def getbundle(repo, proto, others):
   598     opts = options('getbundle', ['heads', 'common', 'bundlecaps'], others)
   599     opts = options('getbundle', ['heads', 'common', 'bundlecaps'], others)
   599     for k, v in opts.iteritems():
   600     for k, v in opts.iteritems():
   600         if k in ('heads', 'common'):
   601         if k in ('heads', 'common'):
   601             opts[k] = decodelist(v)
   602             opts[k] = decodelist(v)
   787     finally:
   788     finally:
   788         fp.close()
   789         fp.close()
   789         os.unlink(tempname)
   790         os.unlink(tempname)
   790 
   791 
   791 commands.update({
   792 commands.update({
   792     'getbundle': (getbundle, '*'),
       
   793     'heads': (heads, ''),
   793     'heads': (heads, ''),
   794     'hello': (hello, ''),
   794     'hello': (hello, ''),
   795     'known': (known, 'nodes *'),
   795     'known': (known, 'nodes *'),
   796     'listkeys': (listkeys, 'namespace'),
   796     'listkeys': (listkeys, 'namespace'),
   797     'lookup': (lookup, 'key'),
   797     'lookup': (lookup, 'key'),