Commits

Martin Geisler committed 2c0b91f

Adapt to Mercurial 1.6 API change.

  • Participants
  • Parent commits 2783985

Comments (0)

Files changed (1)

     ui.pushbuffer()
     if opts['rev']:
         revs = cmdutil.revrange(repo, opts.pop('rev'))
-        patch.export(repo, revs, fp=ui, opts=patch.diffopts(ui, opts))
+        try:
+            export = cmdutil.export
+        except AttributeError:
+            export = patch.export
+        export(repo, revs, fp=ui, opts=patch.diffopts(ui, opts))
     else:
         commands.diff(ui, repo, *pats, **opts)
     content = ui.popbuffer()