Issue 1715 in reviewboard: Rb breaks Git patches with new files/deleted files

2010-07-08 Thread reviewboard

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

New issue 1715 by j...@multani.info: Rb breaks Git patches with new  
files/deleted files

http://code.google.com/p/reviewboard/issues/detail?id=1715

*NOTE: Do not post confidential information in this bug report.*

What version are you running?
1.5 beta 2 (dev)

What steps will reproduce the problem?
1. Create a new review request using a patch from a Git repository, which  
creates a new file. The header of the hunk looks like this:


diff --git a/foo.py b/foo.py
new file mode 100644
index 000..e4da686
--- /dev/null
+++ b/foo.py
@@ -0,0 +1 @@
+Some content

2. Then, download the patch from ReviewBoard, by clicking on the Download  
Diff button. the patch contains the following content:


diff --git a/foo.py b/foo.py
--- /dev/null
+++ b/foo.py
@@ -0,0 +1 @@
+Some content

3. Using git apply to apply the patch, retrieved from the Reviewboard, on  
a repository result in the following error:


$ git apply foo.patch
error: dev/null: No such file or directory

4. If I manually update the patch file downloaded from the ReviewBoard,  
adding the two lines which has disappeared, the patch can be applied by git


AFAIR, the same problem occurs when the patch contains files which have  
been deleted.


--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 164 in reviewboard: Add an optional checklist for reviewers to check off

2010-07-08 Thread reviewboard


Comment #5 on issue 164 by AaronJSherman: Add an optional checklist for  
reviewers to check off

http://code.google.com/p/reviewboard/issues/detail?id=164

schapht, I don't think that was in the request. It was just a request for a  
checklist that reviewers could be asked to complete before signing off on a  
review.


--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Issue 1716 in reviewboard: There is no option to delete a draft.

2010-07-08 Thread reviewboard

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

New issue 1716 by santhosh214: There is no option to delete a draft.
http://code.google.com/p/reviewboard/issues/detail?id=1716

*NOTE: Do not post confidential information in this bug report.*


After uploading a diff, there is no way to delete it, if i dont want it  
anymore.





What version are you running?


What's the URL of the page containing the problem?


What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What operating system are you using? What browser?


Please provide any additional information below.


--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Re: Issue 1716 in reviewboard: There is no option to delete a draft.

2010-07-08 Thread reviewboard

Updates:
Status: UserError

Comment #1 on issue 1716 by chipx86: There is no option to delete a draft.
http://code.google.com/p/reviewboard/issues/detail?id=1716

There is.

If it's a new update on an existing review request, just click Discard  
Draft above the review request in the green bar.


If it's a new review request, click Discard Review Request.

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



Issue 1717 in reviewboard: post-review w/ perforce fails on multiple aliases for perforce server

2010-07-08 Thread reviewboard

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

New issue 1717 by dadkins: post-review w/ perforce fails on multiple  
aliases for perforce server

http://code.google.com/p/reviewboard/issues/detail?id=1717

*NOTE: Do not post confidential information in this bug report.*

What version are you running?
RBTools 0.2

What's the URL of the page containing the problem?


What steps will reproduce the problem?
1. post-review --server=http://reviews/sfoffice.qc 46624
2. (w/ perforce)
3.

What is the expected output? What do you see instead?
dadkins-l:p4 dadkins$ post-review --debug  
--server=http://reviews.sfoffice.qc 46624

svn info
git rev-parse --git-dir
hg root
p4 info
repository info: Path:  
['perforce1.sfo1.qc:1666', '40.1.10.10.in-addr.arpa:1666'], Base path:  
None, Supports changesets: True

Generating diff for changenum 46624
p4 describe -s 46624
Processing edit of  
//depot/main/platform/kfssort/kosmosfs/src/cc/telemetry/packet.h
Writing //depot/main/platform/kfssort/kosmosfs/src/cc/telemetry/packet.h#3  
to /var/folders/q8/q8r34PtkFFWw67FjK1-cxU+++TM/-Tmp-/tmpd5Qit7
p4 print -o /var/folders/q8/q8r34PtkFFWw67FjK1-cxU+++TM/-Tmp-/tmpd5Qit7  
-q //depot/main/platform/kfssort/kosmosfs/src/cc/telemetry/packet.h#3
Writing //depot/main/platform/kfssort/kosmosfs/src/cc/telemetry/packet.h#4  
to /var/folders/q8/q8r34PtkFFWw67FjK1-cxU+++TM/-Tmp-/tmplOac32
p4 print -o /var/folders/q8/q8r34PtkFFWw67FjK1-cxU+++TM/-Tmp-/tmplOac32  
-q //depot/main/platform/kfssort/kosmosfs/src/cc/telemetry/packet.h#4
diff -urNp /var/folders/q8/q8r34PtkFFWw67FjK1-cxU+++TM/-Tmp-/tmpd5Qit7  
/var/folders/q8/q8r34PtkFFWw67FjK1-cxU+++TM/-Tmp-/tmplOac32
Looking for 'reviews.sfoffice.qc /' cookie in  
/Users/dadkins/.post-review-cookies.txt

Loaded valid cookie -- no login required
HTTP GETting /api/json/repositories/
Repositories on Server: [{u'path': u'perforce1:1666', u'tool':  
u'Perforce', u'id': 1, u'name': u'Perforce'}]
Server Aliases:  
['perforce1.sfo1.qc:1666', '40.1.10.10.in-addr.arpa:1666']
Attempting to create review request on  
['perforce1.sfo1.qc:1666', '40.1.10.10.in-addr.arpa:1666'] for 46624
HTTP POSTing to  
http://reviews.sfoffice.qc/api/json/reviewrequests/new/:  
{'repository_path':  
['perforce1.sfo1.qc:1666', '40.1.10.10.in-addr.arpa:1666'], 'changenum': '46624'}

Traceback (most recent call last):
  File /usr/local/bin/post-review, line 8, in module
load_entry_point('RBTools==0.2', 'console_scripts', 'post-review')()
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line 2861, in  
main
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line 2497, in  
tempt_fate
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line 422, in  
new_review_request
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line 648, in  
api_post
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line 620, in  
http_post
  File build/bdist.linux-x86_64/egg/rbtools/postreview.py, line 666, in  
_encode_multipart_formdata

TypeError: can only concatenate list (not str) to list


What operating system are you using? What browser?
Mac OS X

Please provide any additional information below.
Problem is originates when a list is supplied for the repository path:

postreview.py:1396
# If aliases exist for hostname, create a list of alias:port
# strings for repository_path.
if info[1]:
servers = [info[0]] + info[1]
repository_path = [%s:%s % (server, port)
   for server in servers]
else:
repository_path = %s:%s % (info[0], port)


--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.