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


File "C:\Python27\lib\site-packages\rbtools\", 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:

But I wanted to post it here as well for visibility since others may run 
into this.



Supercharge your Review Board with Power Pack:
Want us to host Review Board for you? Check out RBCommons:
Happy user? Let us know!
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 
For more options, visit

Reply via email to