extdatasource: use revsymbol() for converting to node
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 04 Apr 2018 22:36:21 -0700
changeset 37360 d0d55980ffa7
parent 37359 e27298bf11dd
child 37361 e45545f7895e
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
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Wed Apr 04 15:13:32 2018 -0700
+++ b/mercurial/scmutil.py	Wed Apr 04 22:36:21 2018 -0700
@@ -1134,7 +1134,7 @@
 
             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: