Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 11281:b724b8467b82
walkchangerevs: allow empty query sets
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 03 Jun 2010 18:00:15 -0500 |
parents | 2698a95f3f1b |
children | 8c6c7f6347a3 |
comparison
equal
deleted
inserted
replaced
11280:a5eb0bf7e158 | 11281:b724b8467b82 |
---|---|
1022 if follow: | 1022 if follow: |
1023 defrange = '%s:0' % repo['.'].rev() | 1023 defrange = '%s:0' % repo['.'].rev() |
1024 else: | 1024 else: |
1025 defrange = '-1:0' | 1025 defrange = '-1:0' |
1026 revs = revrange(repo, opts['rev'] or [defrange]) | 1026 revs = revrange(repo, opts['rev'] or [defrange]) |
1027 if not revs: | |
1028 return [] | |
1027 wanted = set() | 1029 wanted = set() |
1028 slowpath = match.anypats() or (match.files() and opts.get('removed')) | 1030 slowpath = match.anypats() or (match.files() and opts.get('removed')) |
1029 fncache = {} | 1031 fncache = {} |
1030 change = util.cachefunc(repo.changectx) | 1032 change = util.cachefunc(repo.changectx) |
1031 | 1033 |