hgext/sparse.py
changeset 50789 54d3a6dc2426
parent 49862 b1147450c55c
child 50926 18c8c18993f0
equal deleted inserted replaced
50788:d51a76b5262b 50789:54d3a6dc2426
   144                 return any(f for f in ctx.files() if sparsematch(f))
   144                 return any(f for f in ctx.files() if sparsematch(f))
   145 
   145 
   146             revs = revs.filter(ctxmatch)
   146             revs = revs.filter(ctxmatch)
   147         return revs
   147         return revs
   148 
   148 
   149     extensions.wrapfunction(logcmdutil, b'_initialrevs', _initialrevs)
   149     extensions.wrapfunction(logcmdutil, '_initialrevs', _initialrevs)
   150 
   150 
   151 
   151 
   152 def _clonesparsecmd(orig, ui, repo, *args, **opts):
   152 def _clonesparsecmd(orig, ui, repo, *args, **opts):
   153     include = opts.get('include')
   153     include = opts.get('include')
   154     exclude = opts.get('exclude')
   154     exclude = opts.get('exclude')
   168                 enableprofile=enableprofile,
   168                 enableprofile=enableprofile,
   169                 usereporootpaths=True,
   169                 usereporootpaths=True,
   170             )
   170             )
   171             return orig(ctx, *args, **kwargs)
   171             return orig(ctx, *args, **kwargs)
   172 
   172 
   173         extensions.wrapfunction(mergemod, b'update', clonesparse)
   173         extensions.wrapfunction(mergemod, 'update', clonesparse)
   174     return orig(ui, repo, *args, **opts)
   174     return orig(ui, repo, *args, **opts)
   175 
   175 
   176 
   176 
   177 def _setupclone(ui):
   177 def _setupclone(ui):
   178     entry = commands.table[b'clone']
   178     entry = commands.table[b'clone']