##// END OF EJS Templates
lfs: consult the narrow matcher when extracting pointers from ctx (issue5794)...
Matt Harbison -
r40422:4a81d824 default
parent child Browse files
Show More
@@ -374,7 +374,12 b' def pointersfromctx(ctx, removed=False):'
374 stored for the path is an empty dict.
374 stored for the path is an empty dict.
375 """
375 """
376 result = {}
376 result = {}
377 m = ctx.repo().narrowmatch()
378
379 # TODO: consider manifest.fastread() instead
377 for f in ctx.files():
380 for f in ctx.files():
381 if not m(f):
382 continue
378 p = pointerfromctx(ctx, f, removed=removed)
383 p = pointerfromctx(ctx, f, removed=removed)
379 if p is not None:
384 if p is not None:
380 result[f] = p
385 result[f] = p
@@ -1,4 +1,12 b''
1 #testcases flat tree
1 #testcases flat tree
2 #testcases lfs-on lfs-off
3
4 #if lfs-on
5 $ cat >> $HGRCPATH <<EOF
6 > [extensions]
7 > lfs =
8 > EOF
9 #endif
2
10
3 $ . "$TESTDIR/narrow-library.sh"
11 $ . "$TESTDIR/narrow-library.sh"
4
12
@@ -1,4 +1,12 b''
1 #testcases flat tree
1 #testcases flat tree
2 #testcases lfs-on lfs-off
3
4 #if lfs-on
5 $ cat >> $HGRCPATH <<EOF
6 > [extensions]
7 > lfs =
8 > EOF
9 #endif
2
10
3 $ . "$TESTDIR/narrow-library.sh"
11 $ . "$TESTDIR/narrow-library.sh"
4
12
General Comments 0
You need to be logged in to leave comments. Login now