Hi Heinz, The proper solution would be to implement a hosting service backend for this, or augment the existing one if the API is at all compatible.
It should be possible to extend the raw file URL stuff to take in a commit ID, optionally, but it's a lot more work, as it impacts the SCMTool API. Currently, only hosting services have any support for base_commit_id. Christian -- Christian Hammond President/CEO of Beanbag <https://www.beanbaginc.com/> Makers of Review Board <https://www.reviewboard.org/> On Fri, Feb 26, 2016 at 3:17 AM, Heinz Wiesinger <[email protected]> wrote: > On Tuesday 02 February 2016 16:30:10 Heinz Wiesinger wrote: > > Hi! > > > > We're currently evaluating bitbucket server (formerly stash, not to be > > confused with the bitbucket cloud hosting) and are having troubles > coming up > > with a usable raw file URL mask. What we found so far is this: > > > > http://www.example.org/projects/KEY/repos/foo/browse/ > <filename>?at=<revision > > >&raw > > > > This works (with basic http authentication), but doesn't find the file > > because it expects <revision> to be a commit hash, not an object hash. As > > far as I can see at the moment Bitbucket server doesn't seem to have a > way > > to retrieve files by object hash. > > > > Does anyone else have experience with Bitbucket server / Stash? Or is > there > > a way to tell reviewboard to use commit hashes instead of object hashes? > > I came back to this after a while to try again, but no dice. Even looked at > the code to see how easy it would be to add support for base_commit_id to > custom hosting repositories, but something seems to escape me. > > I filed a feature request for now > (https://hellosplat.com/s/beanbag/tickets/4195/). Like I mentioned there > as > well, I'm more than happy to supply a patch for this myself, if someone can > help me figure out what needs to be adapted :) > > Grs, > Heinz > > -- > 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. > -- 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.
