[Buildbot-devel] revlinks question

Dan Kegel dank at kegel.com
Thu Dec 20 02:11:10 UTC 2012

On Wed, Dec 19, 2012 at 5:55 PM, Dustin J. Mitchell <dustin at v.igoro.us> wrote:
> On Wed, Dec 19, 2012 at 3:50 PM, Dan Kegel <dank at kegel.com> wrote:
>> I tried to set up revlinks for my bot today, and discovered to my dismay
>> that I don't know how.
>> http://buildbot.net/buildbot/docs/latest/manual/cfg-global.html is a bit terse;
>> looking at the actual code
>> https://github.com/tomprince/buildbot/commit/fabfd0ea149b491e07a94df121d1f452c984fe96
>> is a bit more enlightening, but everything seems to assume that the
>> branch name can be inferred from the repo url.
> I'm not sure why you need that?  If the repo URL doesn't have a
> branch, why do you need it in the link?

Here's how I check out the branch:
  factory.addStep(Git(repourl=repourl, mode='full', method='copy',
This translates to
  git fetch -t 'git.example.com:~dank/pub/hello.git' rel-3.6

Here's the cgit url for looking at a change on that branch:

You *can* omit the ?h=rel-3.6, but then when you try to browse to the
log, you get the log for the wrong branch.

So, branch name is not in the repo url
git.example.com:~dank/pub/hello.git, but is
required for proper browsing of changes.

More information about the devel mailing list