##// END OF EJS Templates
py3: fix kwargs handling for `hg bookmarks`
Pulkit Goyal -
r33092:d170f59f default
parent child Browse files
Show More
@@ -20,6 +20,7 from . import (
20 20 error,
21 21 lock as lockmod,
22 22 obsolete,
23 pycompat,
23 24 scmutil,
24 25 txnutil,
25 26 util,
@@ -771,6 +772,7 def _printbookmarks(ui, repo, bmarks, **
771 772 Provides a way for extensions to control how bookmarks are printed (e.g.
772 773 prepend or postpend names)
773 774 """
775 opts = pycompat.byteskwargs(opts)
774 776 fm = ui.formatter('bookmarks', opts)
775 777 hexfn = fm.hexfunc
776 778 if len(bmarks) == 0 and fm.isplain():
@@ -944,12 +944,11 def bookmark(ui, repo, *names, **opts):
944 944
945 945 hg book -f @
946 946 '''
947 opts = pycompat.byteskwargs(opts)
948 force = opts.get('force')
949 rev = opts.get('rev')
950 delete = opts.get('delete')
951 rename = opts.get('rename')
952 inactive = opts.get('inactive')
947 force = opts.get(r'force')
948 rev = opts.get(r'rev')
949 delete = opts.get(r'delete')
950 rename = opts.get(r'rename')
951 inactive = opts.get(r'inactive')
953 952
954 953 if delete and rename:
955 954 raise error.Abort(_("--delete and --rename are incompatible"))
General Comments 0
You need to be logged in to leave comments. Login now