##// END OF EJS Templates
narrow: consider empty commits to be "inside the narrow spec" for templates...
Danny Hooper -
r42550:45c18f73 default
parent child Browse files
Show More
@@ -37,7 +37,7 b' def outsidenarrow(context, mapping):'
37 37 repo = context.resource(mapping, 'repo')
38 38 ctx = context.resource(mapping, 'ctx')
39 39 m = repo.narrowmatch()
40 if not m.always():
40 if ctx.files() and not m.always():
41 41 if not any(m(f) for f in ctx.files()):
42 42 return 'outsidenarrow'
43 43 return ''
@@ -281,6 +281,10 b' Do some work in the empty clone'
281 281 marked working directory as branch foo
282 282 (branches are permanent and global, did you want a bookmark?)
283 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 288 $ hg pull -q
285 289 Can widen the empty clone
286 290 $ hg tracked --addinclude d0
General Comments 0
You need to be logged in to leave comments. Login now