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

New issue 3216 by hg url not created correctly if no trailing / in the repo URL, hg-history call will fail by removing the host from the URL

What version are you running?

What's the URL of the page containing the problem?
create review request

What steps will reproduce the problem?
1.upload patch
2.fails with 'failing to retrieve

So my configured repo URL looks like that:
this constructs the Request sent to reviewboard:
        for rawpath in ["raw-file", "raw", "hg-history"]:
base_url = self.path.rstrip('/')<- will remove from the base url

                if rawpath == 'hg-history':
                    base_url = self.path[:self.path.rfind('/')]
-> request will go to

Can be workarounded by configuring the repo with trailing /:
-> either HG-repos without trailing / have to be prohibited in the admin interface, or this code has to become more clever.

however, even the corrected pattern still fails:

my repo is run by hg version 1.4 ran by /usr/bin/hg serve --name FOO -d -p 8004

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