diff hgext/lfs/__init__.py @ 35798:97bdbcb43ebf stable

lfs: rename {oid} to {lfsoid} Per Yuya, for consistency with {lfspointer}. It might be slightly confusing for there to be {lfsoid} and {lfspointer.oid}. But preventing ambiguity seems more important, and the latter is controlled by the git-lfs spec.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 23 Jan 2018 20:50:02 -0500
parents 76cb752af07a
children 4425790f2373
line wrap: on
line diff
--- a/hgext/lfs/__init__.py	Mon Jan 22 17:47:40 2018 -0500
+++ b/hgext/lfs/__init__.py	Tue Jan 23 20:50:02 2018 -0500
@@ -370,7 +370,7 @@
 
     makemap = lambda v: {
         'file': v,
-        'oid': pointers[v].oid(),
+        'lfsoid': pointers[v].oid(),
         'lfspointer': templatekw.hybriddict(pointer(v)),
     }