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