mercurial/commands.py
changeset 1381 c29c36745c6e
parent 1380 27add82ad845
child 1390 ce95599eedac
child 1457 518da3c3b6ce
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1238,6 +1238,9 @@ def log(ui, repo, *pats, **opts):
                 self.write(*args)
         def write(self, *args):
             self.hunk[self.rev].append(args)
+        def debug(self, *args):
+            if self.debugflag:
+                self.write(*args)
         def __getattr__(self, key):
             return getattr(self.ui, key)
     cwd = repo.getcwd()