Mercurial > hg
comparison hgext/lfs/wrapper.py @ 35473:02f54a1ec9eb
lfs: add note messages indicating what store holds the lfs blob
The following corruption related patches were written prior to adding the user
level cache, and it took awhile to track down why the tests changed. (It
generally made things more resilient.) But I think this will be useful to the
end user as well. I didn't make it --debug level, because there can be a ton of
info coming out of clone/push/pull --debug. The pointers are sorted for test
stability.
I opted for ui.note() instead of checking ui.verbose and then using ui.write()
for convenience, but I see most of this extension does the latter. I have no
idea what the preferred form is.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 19 Dec 2017 17:53:44 -0500 |
parents | a7ff4071c8aa |
children | 417e8e040102 |
comparison
equal
deleted
inserted
replaced
35472:c1f7037c2ded | 35473:02f54a1ec9eb |
---|---|
277 pointers = {} | 277 pointers = {} |
278 for r in revs: | 278 for r in revs: |
279 ctx = repo[r] | 279 ctx = repo[r] |
280 for p in pointersfromctx(ctx).values(): | 280 for p in pointersfromctx(ctx).values(): |
281 pointers[p.oid()] = p | 281 pointers[p.oid()] = p |
282 return pointers.values() | 282 return sorted(pointers.values()) |
283 | 283 |
284 def pointersfromctx(ctx): | 284 def pointersfromctx(ctx): |
285 """return a dict {path: pointer} for given single changectx""" | 285 """return a dict {path: pointer} for given single changectx""" |
286 result = {} | 286 result = {} |
287 for f in ctx.files(): | 287 for f in ctx.files(): |