From 8200a799ae3acb345448839932ee91eebdca4d9d Mon Sep 17 00:00:00 2001 From: Ilya Shakhat Date: Thu, 15 Aug 2013 15:47:15 +0400 Subject: [PATCH] Fixed project attribute in gerrit command Closes bug 1212647 Change-Id: Ia48e15e628d49a3d655402ef0eeb0dccf23fd3f3 --- stackalytics/processor/rcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackalytics/processor/rcs.py b/stackalytics/processor/rcs.py index 93c0ae240..f4fd7acbb 100644 --- a/stackalytics/processor/rcs.py +++ b/stackalytics/processor/rcs.py @@ -77,7 +77,7 @@ class Gerrit(Rcs): def _get_cmd(self, module, branch, sort_key, limit=PAGE_LIMIT): cmd = ('gerrit query --all-approvals --patch-sets --format JSON ' - '%(module)s branch:%(branch)s limit:%(limit)s' % + 'project:\'^.*/%(module)s\' branch:%(branch)s limit:%(limit)s' % {'module': module, 'branch': branch, 'limit': limit}) if sort_key: cmd += ' resume_sortkey:%016x' % sort_key