Show More
@@ -343,11 +343,18 b' def extractpointers(repo, revs):' | |||||
343 | """return a list of lfs pointers added by given revs""" |
|
343 | """return a list of lfs pointers added by given revs""" | |
344 | repo.ui.debug('lfs: computing set of blobs to upload\n') |
|
344 | repo.ui.debug('lfs: computing set of blobs to upload\n') | |
345 | pointers = {} |
|
345 | pointers = {} | |
346 | for r in revs: |
|
346 | ||
347 | ctx = repo[r] |
|
347 | progress = repo.ui.makeprogress(_('lfs search'), _('changesets'), len(revs)) | |
348 | for p in pointersfromctx(ctx).values(): |
|
348 | ||
349 | pointers[p.oid()] = p |
|
349 | try: | |
350 | return sorted(pointers.values()) |
|
350 | for r in revs: | |
|
351 | ctx = repo[r] | |||
|
352 | for p in pointersfromctx(ctx).values(): | |||
|
353 | pointers[p.oid()] = p | |||
|
354 | progress.increment() | |||
|
355 | return sorted(pointers.values()) | |||
|
356 | finally: | |||
|
357 | progress.complete() | |||
351 |
|
358 | |||
352 | def pointerfromctx(ctx, f, removed=False): |
|
359 | def pointerfromctx(ctx, f, removed=False): | |
353 | """return a pointer for the named file from the given changectx, or None if |
|
360 | """return a pointer for the named file from the given changectx, or None if |
General Comments 0
You need to be logged in to leave comments.
Login now