Mercurial > public > mercurial-scm > hg-stable
diff hgext/churn.py @ 9321:d7b6429c5ad4
churn: correct output when run in subdirectories
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 05 Aug 2009 17:17:06 -0700 |
parents | db13255617b3 |
children | 1ef630452e0b dbe2bdd5e488 |
line wrap: on
line diff
--- a/hgext/churn.py Thu Aug 06 00:34:28 2009 +0200 +++ b/hgext/churn.py Wed Aug 05 17:17:06 2009 -0700 @@ -24,7 +24,7 @@ def changedlines(ui, repo, ctx1, ctx2, fns): lines = 0 - fmatch = cmdutil.match(repo, pats=fns) + fmatch = cmdutil.matchfiles(repo, fns) diff = ''.join(patch.diff(repo, ctx1.node(), ctx2.node(), fmatch)) for l in diff.split('\n'): if (l.startswith("+") and not l.startswith("+++ ") or