diff hgext/lfs/__init__.py @ 35769:f00edef84c3b

lfs: rename {lfsattrs} to {pointer} This seems more descriptive.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 19 Jan 2018 19:20:50 -0500
parents 60a6ab7bcda7
children 76cb752af07a
line wrap: on
line diff
--- a/hgext/lfs/__init__.py	Fri Jan 19 21:29:31 2018 -0500
+++ b/hgext/lfs/__init__.py	Fri Jan 19 19:20:50 2018 -0500
@@ -362,7 +362,7 @@
     pointers = wrapper.pointersfromctx(ctx) # {path: pointer}
     files = sorted(pointers.keys())
 
-    def lfsattrs(v):
+    def pointer(v):
         # In the file spec, version is first and the other keys are sorted.
         sortkeyfunc = lambda x: (x[0] != 'version', x)
         items = sorted(pointers[v].iteritems(), key=sortkeyfunc)
@@ -371,7 +371,7 @@
     makemap = lambda v: {
         'file': v,
         'oid': pointers[v].oid(),
-        'lfsattrs': templatekw.hybriddict(lfsattrs(v)),
+        'pointer': templatekw.hybriddict(pointer(v)),
     }
 
     # TODO: make the separator ', '?