##// END OF EJS Templates
debuggetbundle: migrate `opts` to native kwargs
Matt Harbison -
r51846:7825175d default
parent child Browse files
Show More
@@ -1820,8 +1820,7 b' def debuggetbundle(ui, repopath, bundlep'
1820 Every ID must be a full-length hex node id string. Saves the bundle to the
1820 Every ID must be a full-length hex node id string. Saves the bundle to the
1821 given file.
1821 given file.
1822 """
1822 """
1823 opts = pycompat.byteskwargs(opts)
1823 repo = hg.peer(ui, pycompat.byteskwargs(opts), repopath)
1824 repo = hg.peer(ui, opts, repopath)
1825 if not repo.capable(b'getbundle'):
1824 if not repo.capable(b'getbundle'):
1826 raise error.Abort(b"getbundle() not supported by target repository")
1825 raise error.Abort(b"getbundle() not supported by target repository")
1827 args = {}
1826 args = {}
@@ -1833,7 +1832,7 b' def debuggetbundle(ui, repopath, bundlep'
1833 args['bundlecaps'] = None
1832 args['bundlecaps'] = None
1834 bundle = repo.getbundle(b'debug', **args)
1833 bundle = repo.getbundle(b'debug', **args)
1835
1834
1836 bundletype = opts.get(b'type', b'bzip2').lower()
1835 bundletype = opts.get('type', b'bzip2').lower()
1837 btypes = {
1836 btypes = {
1838 b'none': b'HG10UN',
1837 b'none': b'HG10UN',
1839 b'bzip2': b'HG10BZ',
1838 b'bzip2': b'HG10BZ',
General Comments 0
You need to be logged in to leave comments. Login now