Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 8615:94ca38e63576
use ui instead of repo.ui when the former is in scope
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 24 May 2009 22:37:20 +0200 |
parents | 48dd8a93d6db |
children | 7aa1526d4fc5 |
line wrap: on
line diff
--- a/mercurial/commands.py Sun May 24 16:38:29 2009 -0500 +++ b/mercurial/commands.py Sun May 24 22:37:20 2009 +0200 @@ -1078,7 +1078,7 @@ m = cmdutil.match(repo, pats, opts) it = patch.diff(repo, node1, node2, match=m, opts=patch.diffopts(ui, opts)) for chunk in it: - repo.ui.write(chunk) + ui.write(chunk) def export(ui, repo, *changesets, **opts): """dump the header and diffs for one or more changesets @@ -2491,7 +2491,7 @@ for f in names: if f.startswith(path_): return False - repo.ui.warn("%s: %s\n" % (m.rel(path), msg)) + ui.warn("%s: %s\n" % (m.rel(path), msg)) return False m = cmdutil.match(repo, pats, opts)