From 69af5a797bab417110b72a5f39abd3082420c132 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Thu, 6 Jun 2013 02:12:56 +0200 Subject: [PATCH] The metrics module was not taking the --until flag into consideration. --- metrics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/metrics.py b/metrics.py index 63eb675..47a1061 100644 --- a/metrics.py +++ b/metrics.py @@ -23,6 +23,7 @@ from changes import FileDiff import codecs import comment import filtering +import interval import missing import subprocess @@ -32,7 +33,8 @@ __metric_eloc__ = {"java": 500, "c": 500, "cpp": 500, "h": 300, "hpp": 300, "py" class MetricsLogic: def __init__(self): self.eloc = {} - ls_tree_r = subprocess.Popen("git ls-tree --name-only -r HEAD", shell=True, bufsize=1, stdout=subprocess.PIPE).stdout + ls_tree_r = subprocess.Popen("git ls-tree --name-only -r " + interval.get_ref(), shell=True, bufsize=1, + stdout=subprocess.PIPE).stdout for i in ls_tree_r.readlines(): i = codecs.getdecoder("unicode_escape")(i.strip())[0]