# HG changeset patch # User Martin von Zweigbergk # Date 1523202118 25200 # Node ID d665b4ea7d4c053fa07117ff3eb6789914620a85 # Parent d815b9733ebd7a7bb00d97573a02f0aa7a6b0faf merge: avoid unnecessary conversion from binary nodeid to binary nodeid "node" is already a binary nodeid here, so there's no need to convert it. repo.lookup() will soon lose support for binary nodeids as input. Differential Revision: https://phab.mercurial-scm.org/D3190 diff -r d815b9733ebd -r d665b4ea7d4c mercurial/commands.py --- a/mercurial/commands.py Sun Apr 08 22:56:16 2018 -0400 +++ b/mercurial/commands.py Sun Apr 08 08:41:58 2018 -0700 @@ -3587,7 +3587,7 @@ if opts.get('preview'): # find nodes that are ancestors of p2 but not of p1 p1 = repo.lookup('.') - p2 = repo.lookup(node) + p2 = node nodes = repo.changelog.findmissing(common=[p1], heads=[p2]) displayer = logcmdutil.changesetdisplayer(ui, repo, opts)