# HG changeset patch # User Jeff Hammel # Date 1296527338 28800 # Node ID af76bbcc44577ee0308acab101fe3ba3e320f772 # Parent 274d7dc787e3278e8ab24cca626067dad8fb4782 add a dummy catch up function; this should work (at least in theory) as-is, though it might be better to FETCH earlier and pull now diff -r 274d7dc787e3 -r af76bbcc4457 autobot/changes/poller.py --- a/autobot/changes/poller.py Mon Jan 31 18:26:35 2011 -0800 +++ b/autobot/changes/poller.py Mon Jan 31 18:28:58 2011 -0800 @@ -437,6 +437,20 @@ d.addCallback(split_changes) return d + def _catch_up(self, rev): + if self.changeCount == 0: + self.log('%s: no changes, no catch_up' % self.postHash) + return + self.log('catching up to %s' % self.postHash) + + # XXX keeping this in as a dummy for now + # should *really* do fetch earlier and *now* do pull + # (or whatever) + args = ['status'] + d = utils.getProcessOutputAndValue(self.binary, args, path=self.workdir, env=dict(PATH=os.environ['PATH'])) + d.addCallback(self._convert_nonzero_to_failure) + return d + ### metadata for commits ### timestamp