Mercurial > hg
comparison tests/test-lfs.t @ 35999:8c7d5e90e6bd
lfs: teach '{lfs_files}' to handle removed files
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 27 Jan 2018 19:22:15 -0500 |
parents | eefb5d603482 |
children | 91aac8e6604d |
comparison
equal
deleted
inserted
replaced
35998:dce43aaaf209 | 35999:8c7d5e90e6bd |
---|---|
184 | 184 |
185 # Test lfs_files template | 185 # Test lfs_files template |
186 | 186 |
187 $ hg log -r 'all()' -T '{rev} {join(lfs_files, ", ")}\n' | 187 $ hg log -r 'all()' -T '{rev} {join(lfs_files, ", ")}\n' |
188 0 large | 188 0 large |
189 1 l | 189 1 l, large |
190 2 s | 190 2 s |
191 3 s | 191 3 s |
192 4 l | 192 4 l |
193 | 193 |
194 # Push and pull the above repo | 194 # Push and pull the above repo |
1030 $ echo '012345678901234567890abc' > lfs.test | 1030 $ echo '012345678901234567890abc' > lfs.test |
1031 $ hg ci -m 'back to lfs' | 1031 $ hg ci -m 'back to lfs' |
1032 $ hg rm lfs.test | 1032 $ hg rm lfs.test |
1033 $ hg ci -qm 'remove lfs' | 1033 $ hg ci -qm 'remove lfs' |
1034 | 1034 |
1035 {lfs_files} will list deleted files too | |
1036 | |
1037 $ hg log -T "{lfs_files % '{rev} {file}: {lfspointer.oid}\n'}" | |
1038 6 lfs.test: | |
1039 5 lfs.test: sha256:43f8f41171b6f62a6b61ba4ce98a8a6c1649240a47ebafd43120aa215ac9e7f6 | |
1040 3 lfs.catchall: sha256:31f43b9c62b540126b0ad5884dc013d21a61c9329b77de1fceeae2fc58511573 | |
1041 3 lfs.test: sha256:8acd23467967bc7b8cc5a280056589b0ba0b17ff21dbd88a7b6474d6290378a6 | |
1042 2 lfs.catchall: sha256:d4ec46c2869ba22eceb42a729377432052d9dd75d82fc40390ebaadecee87ee9 | |
1043 2 lfs.test: sha256:5489e6ced8c36a7b267292bde9fd5242a5f80a7482e8f23fa0477393dfaa4d6c | |
1044 | |
1035 TODO: This should notice the deleted lfs files in rev 6 | 1045 TODO: This should notice the deleted lfs files in rev 6 |
1036 $ hg log -r 'file("set:lfs()")' -T '{rev} {join(lfs_files, ", ")}\n' | 1046 $ hg log -r 'file("set:lfs()")' -T '{rev} {join(lfs_files, ", ")}\n' |
1037 2 lfs.catchall, lfs.test | 1047 2 lfs.catchall, lfs.test |
1038 3 lfs.catchall, lfs.test | 1048 3 lfs.catchall, lfs.test |
1039 5 lfs.test | 1049 5 lfs.test |