diff hgext/lfs/__init__.py @ 35658:a1222a8cc93b

lfs: add the '{oid}' template keyword to '{lfs_files}' The 'sha256:' prefix is skipped because this seems like the most convenient way to consume it. Maybe we should also add a '{oid_type}' keyword? Then again, that can be added in the future if a different algorithm is supported.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 14 Jan 2018 15:56:22 -0500
parents 8580e5898cb7
children a985834961f7
line wrap: on
line diff
--- a/hgext/lfs/__init__.py	Sun Jan 14 15:39:10 2018 -0500
+++ b/hgext/lfs/__init__.py	Sun Jan 14 15:56:22 2018 -0500
@@ -230,6 +230,7 @@
 
     makemap = lambda v: {
         'file': v,
+        'oid': pointers[v].oid(),
     }
 
     # TODO: make the separator ', '?