Mercurial > hg
comparison tests/test-lfs.t @ 36743:d031609b3cb7 stable
changegroup: do not delta lfs revisions
There is no way to distinguish whether a delta base is LFS or non-LFS.
If the delta is against LFS rawtext, and the client trying to apply it has
the base revision stored as fulltext, the delta (aka. bundle) will fail to
apply.
This patch forbids using delta for LFS revisions in changegroup so bad
deltas won't be transmitted.
Note: this does not solve the problem entirely. It solves LFS delta applying
to non-LFS base. But the other direction: non-LFS delta applying to LFS base
is not solved yet.
Differential Revision: https://phab.mercurial-scm.org/D2067
author | Jun Wu <quark@fb.com> |
---|---|
date | Tue, 06 Feb 2018 19:08:25 -0800 |
parents | 4425790f2373 |
children | 7bf80d9d9543 |
comparison
equal
deleted
inserted
replaced
36742:4e41b59633fa | 36743:d031609b3cb7 |
---|---|
347 lfs: found fda198fea753eb66a252e9856915e1f5cddbe41723bd4b695ece2604ad3c9f75 in the local lfs store | 347 lfs: found fda198fea753eb66a252e9856915e1f5cddbe41723bd4b695ece2604ad3c9f75 in the local lfs store |
348 4 changesets found | 348 4 changesets found |
349 uncompressed size of bundle content: | 349 uncompressed size of bundle content: |
350 * (changelog) (glob) | 350 * (changelog) (glob) |
351 * (manifests) (glob) | 351 * (manifests) (glob) |
352 * a (glob) | 352 * a (glob) |
353 $ hg --config extensions.strip= strip -r 2 --no-backup --force -q | 353 $ hg --config extensions.strip= strip -r 2 --no-backup --force -q |
354 $ hg -R bundle.hg log -p -T '{rev} {desc}\n' a | 354 $ hg -R bundle.hg log -p -T '{rev} {desc}\n' a |
355 5 branching | 355 5 branching |
356 diff --git a/a b/a | 356 diff --git a/a b/a |
357 --- a/a | 357 --- a/a |