Mercurial > public > mercurial-scm > hg-stable
diff hgext/graphlog.py @ 16181:1fd352aa08fc
graphlog: evaluate FILE/-I/-X filesets on the working dir
This subtlety is not documented yet but:
- pats/--include/--exclude filesets are evaluated against the working directory
- --rev filesets are reevaluated against every revisions
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sun, 26 Feb 2012 17:10:51 +0100 |
parents | 46a96cc830c2 |
children | 6863caf01daa |
line wrap: on
line diff
--- a/hgext/graphlog.py Sun Feb 26 16:56:32 2012 +0100 +++ b/hgext/graphlog.py Sun Feb 26 17:10:51 2012 +0100 @@ -303,8 +303,10 @@ # pats/include/exclude cannot be represented as separate # revset expressions as their filtering logic applies at file # level. For instance "-I a -X a" matches a revision touching - # "a" and "b" while "file(a) and not file(b)" does not. - matchargs = [] + # "a" and "b" while "file(a) and not file(b)" does + # not. Besides, filesets are evaluated against the working + # directory. + matchargs = ['r:'] for p in pats: matchargs.append('p:' + p) for p in opts.get('include', []):