Commits

Yuya Nishihara committed 3f14c72

copypatch: drop dummy Writable hack (refs #2280)

Since Mercurial 2.4, output='' can disable output to stdout (=ui.fout).

  • Participants
  • Parent commits accd987

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repowidget.py

         _ui.pushbuffer()
         try:
             if self.rev and len(self.menuselection) == 1:
-                class Writable(object):
-                    def write(self, *args, **opts): _ui.write(*args, **opts)
-                    def close(self): pass
-                    def __len__(self): return 0
-                commands.export(_ui, self.repo, self.rev, output=Writable())
+                commands.export(_ui, self.repo, self.rev, output='')
             else:
                 revs = self.rev and self.menuselection or None
                 commands.diff(_ui, self.repo, rev=revs)