Mercurial > evolve
diff hgext3rd/evolve/__init__.py @ 4715:12c8b24757f4
py3: use byte strings for @command registrations
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 09 Jul 2019 10:56:42 -0700 |
parents | de194ed973ba |
children | 7b36f9728351 |
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py Wed Jul 03 11:13:47 2019 -0700 +++ b/hgext3rd/evolve/__init__.py Tue Jul 09 10:56:42 2019 -0700 @@ -467,7 +467,7 @@ _alias, statuscmd = cmdutil.findcmd('status', commands.table) pstatusopts = [o for o in statuscmd[1] if o[1] != 'rev'] - @eh.command('pstatus', pstatusopts) + @eh.command(b'pstatus', pstatusopts) def pstatus(ui, repo, *args, **kwargs): """show status combining committed and uncommited changes @@ -482,7 +482,7 @@ _alias, diffcmd = cmdutil.findcmd('diff', commands.table) pdiffopts = [o for o in diffcmd[1] if o[1] != 'rev'] - @eh.command('pdiff', pdiffopts) + @eh.command(b'pdiff', pdiffopts) def pdiff(ui, repo, *args, **kwargs): """show diff combining committed and uncommited changes @@ -983,14 +983,14 @@ return target, bookmark @eh.command( - 'previous', - [('B', 'move-bookmark', False, - _('move active bookmark after update')), - ('m', 'merge', False, _('bring uncommitted change along')), - ('', 'no-topic', False, _('ignore topic and move topologically')), - ('n', 'dry-run', False, - _('do not perform actions, just print what would be done'))], - '[OPTION]...', + b'previous', + [(b'B', b'move-bookmark', False, + _(b'move active bookmark after update')), + (b'm', b'merge', False, _(b'bring uncommitted change along')), + (b'', b'no-topic', False, _(b'ignore topic and move topologically')), + (b'n', b'dry-run', False, + _(b'do not perform actions, just print what would be done'))], + b'[OPTION]...', helpbasic=True) def cmdprevious(ui, repo, **opts): """update to parent revision @@ -1041,15 +1041,15 @@ lockmod.release(wlock) @eh.command( - 'next', - [('B', 'move-bookmark', False, - _('move active bookmark after update')), - ('m', 'merge', False, _('bring uncommitted change along')), - ('', 'evolve', True, _('evolve the next changeset if necessary')), - ('', 'no-topic', False, _('ignore topic and move topologically')), - ('n', 'dry-run', False, - _('do not perform actions, just print what would be done'))], - '[OPTION]...', + b'next', + [(b'B', b'move-bookmark', False, + _(b'move active bookmark after update')), + (b'm', b'merge', False, _(b'bring uncommitted change along')), + (b'', b'evolve', True, _(b'evolve the next changeset if necessary')), + (b'', b'no-topic', False, _(b'ignore topic and move topologically')), + (b'n', b'dry-run', False, + _(b'do not perform actions, just print what would be done'))], + b'[OPTION]...', helpbasic=True) def cmdnext(ui, repo, **opts): """update to next child revision @@ -1302,9 +1302,9 @@ raise error.Abort(msg, hint=hint) @eh.command( - 'debugobsconvert', - [('', 'new-format', obsexchange._bestformat, _('Destination format for markers.'))], - '') + b'debugobsconvert', + [(b'', b'new-format', obsexchange._bestformat, _(b'Destination format for markers.'))], + b'') def debugobsconvert(ui, repo, new_format): origmarkers = repo.obsstore._all # settle version if new_format == repo.obsstore._version: