comparison tests/test-lfs.t @ 35797:76cb752af07a stable

lfs: rename {pointer} to {lfspointer} Per Martin von Zweigbergk's suggestion to keep this unambiguous, for when it is migrated to {files} and friends.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 22 Jan 2018 17:47:40 -0500
parents f00edef84c3b
children 97bdbcb43ebf
comparison
equal deleted inserted replaced
35796:de23345e2b6b 35797:76cb752af07a
863 $ hg --cwd convert_lfs debugdata a1 0 863 $ hg --cwd convert_lfs debugdata a1 0
864 version https://git-lfs.github.com/spec/v1 864 version https://git-lfs.github.com/spec/v1
865 oid sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024 865 oid sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
866 size 29 866 size 29
867 x-is-binary 0 867 x-is-binary 0
868 $ hg --cwd convert_lfs log -r 0 -T "{lfs_files % '{pointer % '{key}={value}\n'}'}" 868 $ hg --cwd convert_lfs log -r 0 -T "{lfs_files % '{lfspointer % '{key}={value}\n'}'}"
869 version=https://git-lfs.github.com/spec/v1 869 version=https://git-lfs.github.com/spec/v1
870 oid=sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024 870 oid=sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
871 size=29 871 size=29
872 x-is-binary=0 872 x-is-binary=0
873 $ hg --cwd convert_lfs log -r 0 \ 873 $ hg --cwd convert_lfs log -r 0 \
874 > -T '{lfs_files % "{get(pointer, "oid")}\n"}{lfs_files % "{pointer.oid}\n"}' 874 > -T '{lfs_files % "{get(lfspointer, "oid")}\n"}{lfs_files % "{lfspointer.oid}\n"}'
875 sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024 875 sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
876 sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024 876 sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
877 $ hg --cwd convert_lfs log -r 0 -T '{lfs_files % "{pointer}\n"}' 877 $ hg --cwd convert_lfs log -r 0 -T '{lfs_files % "{lfspointer}\n"}'
878 version=https://git-lfs.github.com/spec/v1 oid=sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024 size=29 x-is-binary=0 878 version=https://git-lfs.github.com/spec/v1 oid=sha256:5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024 size=29 x-is-binary=0
879 $ hg --cwd convert_lfs \ 879 $ hg --cwd convert_lfs \
880 > log -r 'all()' -T '{rev}: {lfs_files % "{file}: {oid}\n"}' 880 > log -r 'all()' -T '{rev}: {lfs_files % "{file}: {oid}\n"}'
881 0: a1: 5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024 881 0: a1: 5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024
882 1: a2: 5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024 882 1: a2: 5bb8341bee63b3649f222b2215bde37322bea075a30575aa685d8f8d21c77024