Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 13534:4ec34de8bbb1 stable
match: ignore "" patterns
The following command would visit every changeset in repo/ rather than
the last 10:
hg log -l 10 repo/
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 04 Mar 2011 19:21:12 -0600 |
parents | 31aa2e5b0750 |
children | 8796fb6af67e |
comparison
equal
deleted
inserted
replaced
13531:67fbe566eff1 | 13534:4ec34de8bbb1 |
---|---|
259 continue | 259 continue |
260 ret.append(p) | 260 ret.append(p) |
261 return ret | 261 return ret |
262 | 262 |
263 def match(repo, pats=[], opts={}, globbed=False, default='relpath'): | 263 def match(repo, pats=[], opts={}, globbed=False, default='relpath'): |
264 if pats == ("",): | |
265 pats = [] | |
264 if not globbed and default == 'relpath': | 266 if not globbed and default == 'relpath': |
265 pats = expandpats(pats or []) | 267 pats = expandpats(pats or []) |
266 m = matchmod.match(repo.root, repo.getcwd(), pats, | 268 m = matchmod.match(repo.root, repo.getcwd(), pats, |
267 opts.get('include'), opts.get('exclude'), default, | 269 opts.get('include'), opts.get('exclude'), default, |
268 auditor=repo.auditor) | 270 auditor=repo.auditor) |