There's a bug in RBTools 0.7.4 when using 'rbt patch' with the --px option.
The problem is the option string isn't being converted to an integer:
$ rbt --version
RBTools 0.7.4
$ rbt patch --px 4 --repository-type perforce -d 128385
<snip>
File "C:\Python27\lib\site-packages\rbtools\clients__init__.py", line 197,
in apply_patch
cmd.append('-p%d' % p_num)
TypeError: %d format: a number is required, not str
The simplest fix is:
< cmd.append('-p%d' % p_num)
> cmd.append('-p%d' % int(p_num))
The problem is also in 0.7.5 alpha.
I opened a ticket here:
https://hellosplat.com/s/beanbag/tickets/4364/
But I wanted to post it here as well for visibility since others may run
into this.
Thanks
--Steve
--
Supercharge your Review Board with Power Pack:
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons:
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.