# HG changeset patch # User Martin von Zweigbergk # Date 2018-04-05 05:36:21 # Node ID d0d55980ffa747020a4c9b8f329c00ad2d6221dc # Parent e27298bf11dde3a7fe2aecfff8edca36b72f153f extdatasource: use revsymbol() for converting to node It's unclear what we want to support here. Perhaps it should just be nodeids? It doesn't make much sense to share revnums between repos, and bookmarks are probably too unstable. I used scmutil.revsymbol() to preserve the current behavior. We can change later if we want to. Differential Revision: https://phab.mercurial-scm.org/D3088 diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -1134,7 +1134,7 @@ def extdatasource(repo, source): k = encoding.tolocal(k) try: - data[repo[k].rev()] = encoding.tolocal(v) + data[revsingle(repo, k).rev()] = encoding.tolocal(v) except (error.LookupError, error.RepoLookupError): pass # we ignore data for nodes that don't exist locally finally: