diff hgext/eol.py @ 37678:5f8f013e7d52

scmutil: rename resolvepartialhexnodeid() to resolvehexnodeidprefix() I'm going to wrap revlog.shortest() in scmutil. I plan on calling it shortesthexnodeidprefix(). resolvehexnodeidprefix() matches that better. Also, "prefix" carries more information than "partial". Differential Revision: https://phab.mercurial-scm.org/D3309
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 13 Apr 2018 22:46:37 -0700
parents 9b16a67cef56
children f47608575c10
line wrap: on
line diff
--- a/hgext/eol.py	Fri Apr 13 09:48:22 2018 -0700
+++ b/hgext/eol.py	Fri Apr 13 22:46:37 2018 -0700
@@ -300,7 +300,7 @@
 hook = checkheadshook
 
 def preupdate(ui, repo, hooktype, parent1, parent2):
-    p1node = scmutil.resolvepartialhexnodeid(repo, parent1)
+    p1node = scmutil.resolvehexnodeidprefix(repo, parent1)
     repo.loadeol([p1node])
     return False