예제 #1
0
파일: svn.py 프로젝트: sarroutbi/guilty
    def _parse_line (self, line):
        if not line:
            return

        match = self.line_pattern.match (line)
        if not match:
            return

        bl = BlameLine ()
        bl.line = self.n_line
        bl.rev = match.group (1)
        bl.author = match.group (2)
        bl.date = datetime.datetime (int (match.group (3)), int (match.group (4)), int (match.group (5)),
                                     int (match.group (6)), int (match.group (7)), int (match.group (8)))

        self.out.line (bl)
예제 #2
0
파일: cvs.py 프로젝트: sarroutbi/guilty
    def _parse_line (self, line):
        if not line:
            return

        match = self.line_pattern.match (line)
        if not match:
            return

        bl = BlameLine ()
        bl.line = self.bline
        bl.rev = match.group (1)
        bl.author = match.group (2)
        bl.date = datetime.datetime (* (time.strptime (match.group (3), "%d-%b-%y")[0:3]))

        self.bline += 1
        self.out.line (bl)
예제 #3
0
파일: git.py 프로젝트: sarroutbi/guilty
    def _parse_line (self, line):
        if not line:
            return

        match = self.line_pattern.match (line)
        if not match:
            return

        bl = BlameLine ()
        bl.line = int (match.group (5))
        bl.rev = match.group (1)
        bl.author = match.group (3).strip ()
        bl.date = datetime.datetime (* (time.gmtime (int (match.group (4)))[0:6]))
        filename = match.group (2)
        if filename != self.filename:
            bl.file = filename

        self.out.line (bl)