##// END OF EJS Templates
lfs: add the '{oid}' template keyword to '{lfs_files}'...
Matt Harbison -
r35676:a1222a8c default
parent child Browse files
Show More
@@ -230,6 +230,7 b' def lfsfiles(repo, ctx, **args):'
230
230
231 makemap = lambda v: {
231 makemap = lambda v: {
232 'file': v,
232 'file': v,
233 'oid': pointers[v].oid(),
233 }
234 }
234
235
235 # TODO: make the separator ', '?
236 # TODO: make the separator ', '?
@@ -859,10 +859,11 b" there's no 'lfs' destination repo requir"
859 oid sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
859 oid sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
860 size 29
860 size 29
861 x-is-binary 0
861 x-is-binary 0
862 $ hg --cwd convert_lfs log -r 'all()' -T '{rev}: {lfs_files % "{file}\n"}'
862 $ hg --cwd convert_lfs \
863 0: a1
863 > log -r 'all()' -T '{rev}: {lfs_files % "{file}: {oid}\n"}'
864 1: a2
864 0: a1: 5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
865 2: a2
865 1: a2: 5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
866 2: a2: 876dadc86a8542f9798048f2c47f51dbf8e4359aed883e8ec80c5db825f0d943
866
867
867 $ grep 'lfs' convert_lfs/.hg/requires
868 $ grep 'lfs' convert_lfs/.hg/requires
868 lfs
869 lfs
General Comments 0
You need to be logged in to leave comments. Login now