mercurial/commands.py
changeset 480 430a10669928
parent 479 7293cb91bf2a
child 481 2705d20f77c9
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -340,7 +340,7 @@ def diff(ui, repo, *files, **opts):
         revs = map(lambda x: repo.lookup(x), opts['rev'])
 
     if len(revs) > 2:
-        self.ui.warn("too many revisions to diff\n")
+        ui.warn("too many revisions to diff\n")
         sys.exit(1)
 
     if files: