Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3131 by Unable to perform postreview -o on mercurial 2.5 or newer

*** You must complete this form in its entirety, or your bug report will be
*** For customer support, please post to
*** If you have a patch, please submit it to
*** Do not post confidential information in this bug report!

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?

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

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\", line 136, in postreview
    rparent = remoteparent(ui, repo, opts, rev)
File "C:\\Program Files\\TortoiseHG\reviewboard\", 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.

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to