Mercurial > evolve
diff hgext3rd/evolve/__init__.py @ 5790:b1d1903df29e
pdiff: drop unnecessary CLI options
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Wed, 17 Feb 2021 15:37:14 +0530 |
parents | 43a5371fa669 |
children | 2e1747baf550 |
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py Mon Feb 22 17:37:53 2021 +0100 +++ b/hgext3rd/evolve/__init__.py Wed Feb 17 15:37:14 2021 +0530 @@ -444,7 +444,8 @@ return statuscmd[0](ui, repo, *args, **kwargs) _alias, diffcmd = cmdutil.findcmd(b'diff', commands.table) - pdiffopts = [o for o in diffcmd[1] if o[1] != b'rev'] + inapplicable = {b'rev', b'from', b'to', b'change'} + pdiffopts = [o for o in diffcmd[1] if o[1] not in inapplicable] @eh.command(b'pdiff', pdiffopts, **compat.helpcategorykwargs('CATEGORY_WORKING_DIRECTORY'))