Issue 2585 in reviewboard: Reviewboard's Mercurial Support won't work against Google Code

21 views
Skip to first unread message

revie...@googlecode.com

unread,
Apr 29, 2012, 1:59:51 AM4/29/12
to reviewboa...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2585 by au...@google.com: Reviewboard's Mercurial Support won't
work against Google Code
http://code.google.com/p/reviewboard/issues/detail?id=2585

What version are you running?
1.6.6

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

What steps will reproduce the problem?
1. Use Mercurial on Project Hosting (Google Code)
2. Upload a diff

What is the expected output? What do you see instead?
I expect to be able to review diffs. Instead, I get a (baffling) error that
the file doesn't exist in the parent revision.

You're going outside the Mercurial wireprotocol (understandable, since
Mercurial lacks a way to fetch raw filecontent via the wireprotocol). I see
you've already got a kludge in place for BitBucket (/raw/ instead of
hgweb's /raw-file/), so maybe you can just add something similar for
project hosting as well? The format you're looking for is
http://${project}.googlecode.com/hg-history/${revision}/${filepath}.

I suspect you're broken against our git repositories as well if you do a
similar trick against gitweb, although I didn't look. if you replace
hg-history with git-history in the URL format I list above, you'll get what
you'd expect.

revie...@googlecode.com

unread,
May 15, 2012, 11:19:33 AM5/15/12
to reviewboa...@googlegroups.com

Comment #1 on issue 2585 by nate.sku...@gmail.com: Reviewboard's Mercurial
Support won't work against Google Code
http://code.google.com/p/reviewboard/issues/detail?id=2585

This patch against 1.6.6 fixes it for us.

Attachments:
reviewboard-googlecode-patch.patch 920 bytes

revie...@googlecode.com

unread,
May 15, 2012, 3:02:26 PM5/15/12
to reviewboa...@googlegroups.com
Updates:
Status: PendingReview
Labels: Milestone-Release1.6.x Component-SCMTools

Comment #2 on issue 2585 by chip...@gmail.com: Reviewboard's Mercurial
Support won't work against Google Code
http://code.google.com/p/reviewboard/issues/detail?id=2585

Can you post this on http://reviews.reviewboard.org/ ?

revie...@googlecode.com

unread,
Jul 4, 2012, 2:25:41 AM7/4/12
to reviewboa...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 2585 by trowb...@gmail.com: Reviewboard's Mercurial
Support won't work against Google Code
http://code.google.com/p/reviewboard/issues/detail?id=2585

Fixed it commit c2c803d.

Reply all
Reply to author
Forward
0 new messages