<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Using <br>
Buildbot version: 0.8.12<br>
Twisted version: 16.2.0
<p>I'd like to tweak the <font face="Courier New, Courier,
monospace">ChangeFilter(...)</font> that's passed to the <font
face="Courier New, Courier, monospace">SingleBranchScheduler(...)</font>
in my master.cfg so it schedules builds only when files in
specific folders change, as detected by a <font face="Courier
New, Courier, monospace">SVNPoller(...)</font>.</p>
<p>The simplest way, I think, would be to add set its codebase_re
parameter to a compiled regular expression (e.g., <font
face="Courier New, Courier, monospace">codebase_re=re.compile(my_pattern,
re.I)</font>).</p>
<p>Alas, this doesn't suffice because it seems that the Changes, as
displayed in twistd.log, don't have any useful information in the
codebase field nor many other fields. A typical excerpt from
twistd.log looks like</p>
<p>2017-05-03 16:16:07-0700 [-] Adding change revision 11107<br>
2017-05-03 16:16:08-0700 [-] added change
Change(revision=u'11107', who=u'username', branch=None,
comments=u"Some log information for this revision",
when=1493853367, category=None, project=u'',
repository=u'<a class="moz-txt-link-freetext" href="svn://kraken/trunk/sf_code">svn://kraken/trunk/sf_code</a>', codebase=u'') to
database<br>
2017-05-03 16:16:08-0700 [-] SVNPoller: finished polling None</p>
<p><br>
</p>
<p>I suspect this has to do with the split_file parameter of <font
face="Courier New, Courier, monospace">SVNPoller(...)</font>.
It's currently not set explicitly, so as I understand it, the
default is <font face="Courier New, Courier, monospace">util.svn.split_file_alwaystrunk</font>.</p>
<p>A few questions:</p>
<p>How to get some diagnostic information on the input and the
output of the <font face="Courier New, Courier, monospace">SVNPoller</font>'s
split_file function?</p>
<p>How to get more content in the <font face="Courier New, Courier,
monospace">Changes(...)</font>?</p>
<p>How to diagnose why a <font face="Courier New, Courier,
monospace">ChangeFilter</font> accepts or rejects a particular <font
face="Courier New, Courier, monospace">Change</font>?<br>
</p>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Greg Bullock
NorthWest Research Associates
301 Webster St.
Monterey, CA 93940
(831) 582-4907
<a class="moz-txt-link-abbreviated" href="mailto:greg@nwra.com">greg@nwra.com</a></pre>
</body>
</html>