# HG changeset patch # User Martin von Zweigbergk # Date 2018-04-08 16:28:49 # Node ID 35b34202dd3b2effc6e5ff5a82f911825a9cf532 # Parent 45667439439ec4a9cd4811cd2b649b0e80b5a696 context: handle partial nodeids in revsymbol() Similar reasoning as previous patches. Differential Revision: https://phab.mercurial-scm.org/D3195 diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -498,6 +498,11 @@ def revsymbol(repo, symbol): except KeyError: pass + node = repo.unfiltered().changelog._partialmatch(symbol) + if node is not None: + rev = repo.changelog.rev(node) + return repo[rev] + return repo[symbol] except error.WdirUnsupported: