Show More
@@ -37,7 +37,7 b' def outsidenarrow(context, mapping):' | |||||
37 | repo = context.resource(mapping, 'repo') |
|
37 | repo = context.resource(mapping, 'repo') | |
38 | ctx = context.resource(mapping, 'ctx') |
|
38 | ctx = context.resource(mapping, 'ctx') | |
39 | m = repo.narrowmatch() |
|
39 | m = repo.narrowmatch() | |
40 | if not m.always(): |
|
40 | if ctx.files() and not m.always(): | |
41 | if not any(m(f) for f in ctx.files()): |
|
41 | if not any(m(f) for f in ctx.files()): | |
42 | return 'outsidenarrow' |
|
42 | return 'outsidenarrow' | |
43 | return '' |
|
43 | return '' |
@@ -281,6 +281,10 b' Do some work in the empty clone' | |||||
281 | marked working directory as branch foo |
|
281 | marked working directory as branch foo | |
282 | (branches are permanent and global, did you want a bookmark?) |
|
282 | (branches are permanent and global, did you want a bookmark?) | |
283 | $ hg ci -m empty |
|
283 | $ hg ci -m empty | |
|
284 | $ hg log -T "{rev}: {desc} {outsidenarrow}\n" | |||
|
285 | 2: empty | |||
|
286 | 1: add d5/f outsidenarrow | |||
|
287 | 0: add d0/f outsidenarrow | |||
284 | $ hg pull -q |
|
288 | $ hg pull -q | |
285 | Can widen the empty clone |
|
289 | Can widen the empty clone | |
286 | $ hg tracked --addinclude d0 |
|
290 | $ hg tracked --addinclude d0 |
General Comments 0
You need to be logged in to leave comments.
Login now