3131: Unable to perform postreview -o on mercurial 2.5 or newer

sean****@gmai***** (Google Code) (Is this you? Claim this profile.)
Nov. 6, 2013
What version are you running?
RBTools 0.5.2
Python 2.7.5
Mercurial 2.5 or greater
Happens on cygwin and windows 7 command prompt

What's the URL of the page containing the problem?
N/A

What steps will reproduce the problem?
1. Navigate to a local repo
2. hg postreview -o
3.

What is the expected output? What do you see instead?
I expect a new review is created.

$ hg postreview -o
searching for changes
** Unknown exception encountered with possibly-broken third-party extension reviewboard
** which supports versions unknown of Mercurial.
** Please disable reviewboard and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 2.5.4)
** Extensions loaded: convert, extdiff, fetch, rebase, reviewboard
Traceback (most recent call last):
  File "hg", line 38, in <module>
  File "mercurial\dispatch.pyc", line 28, in run
  File "mercurial\dispatch.pyc", line 65, in dispatch
  File "mercurial\dispatch.pyc", line 88, in _runcatch
  File "mercurial\dispatch.pyc", line 743, in _dispatch
  File "mercurial\dispatch.pyc", line 514, in runcommand
  File "mercurial\dispatch.pyc", line 833, in _runcommand
  File "mercurial\dispatch.pyc", line 804, in checkargs
  File "mercurial\dispatch.pyc", line 740, in <lambda>
  File "mercurial\util.pyc", line 475, in check
  File "C:\\Program Files\\TortoiseHG\reviewboard\__init__.py", line 136, in postreview
    rparent = remoteparent(ui, repo, opts, rev)
  File "C:\\Program Files\\TortoiseHG\reviewboard\__init__.py", line 273, in remoteparent
    ancestors = repo.changelog.ancestors([repo.lookup(rev)])
  File "mercurial\revlog.pyc", line 351, in ancestors
  File "mercurial\ancestor.pyc", line 199, in __init__
TypeError: bad operand type for unary -: 'str'


What operating system are you using? What browser?
Windows 7 (64 bit)

Please provide any additional information below.
without the -o, postreview executes without error.
david
#1 david
'hg postreview' is a third-party tool which is not created or maintained by the reviewboard team. You'll have to report this to the authors: http://mercurial.selenic.com/wiki/ReviewboardExtension
  • +ThirdParty
#2 sean****@gmai***** (Google Code) (Is this you? Claim this profile.)
Thank you for your prompt reply.