• Adam Langley's avatar
    lib/codereview: fix with more recent hg revisions. · 03c008bc
    Adam Langley authored
    I've Mercurial version 3.2 and hg submit fails with:
    
      File "/home/agl/devel/go/lib/codereview/codereview.py", line 3567, in get_hg_status
        ret = hg_commands.status(fui, self.repo, *[], **{'rev': [rev], 'copies': True})
      File "/usr/lib/python2.7/site-packages/mercurial/commands.py", line 5714, in status
        fm = ui.formatter('status', opts)
      File "/home/agl/devel/go/lib/codereview/codereview.py", line 3464, in formatter
        return plainformatter(self, topic, opts)
      File "/usr/lib/python2.7/site-packages/mercurial/formatter.py", line 57, in __init__
        if ui.debugflag:
      AttributeError: 'FakeMercurialUI' object has no attribute 'debugflag'
    
    This change dumbly adds a boolean debugflag and that seems to work.
    
    LGTM=minux
    R=rsc, minux
    CC=golang-codereviews
    https://golang.org/cl/167410043
    03c008bc
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...