Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Content extension #41

Closed
wants to merge 17 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pycvsanaly2/Database.py
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@
# Authors :
# Carlos Garcia Campos <[email protected]>

import datetime

from utils import to_unicode, printdbg

@@ -398,7 +397,7 @@ def create_tables (self, cursor):
")")
cursor.execute ("CREATE TABLE actions (" +
"id integer primary key," +
"type varchar(1)," +
"type varchar(2)," +
"file_id integer," +
"commit_id integer," +
"branch_id integer" +
@@ -552,7 +551,7 @@ def create_tables (self, cursor):
" CHARACTER SET=utf8")
cursor.execute ("CREATE TABLE actions (" +
"id INT," +
"type varchar(1)," +
"type varchar(2)," +
"file_id integer," +
"commit_id integer," +
"branch_id integer," +
3 changes: 1 addition & 2 deletions pycvsanaly2/GitParser.py
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@
# Authors :
# Carlos Garcia Campos <[email protected]>

import os
import re
import time
import datetime
@@ -70,7 +69,7 @@ def set_tail (self, tail):
patterns['author'] = re.compile ("^Author:[ \t]+(.*)[ \t]+<(.*)>$")
patterns['committer'] = re.compile ("^Commit:[ \t]+(.*)[ \t]+<(.*)>$")
patterns['date'] = re.compile ("^CommitDate: (.* [0-9]+ [0-9]+:[0-9]+:[0-9]+ [0-9][0-9][0-9][0-9]) ([+-][0-9][0-9][0-9][0-9])$")
patterns['file'] = re.compile ("^([MAD])[ \t]+(.*)$")
patterns['file'] = re.compile ("^([MAD]+)[ \t]+(.*)$")
patterns['file-moved'] = re.compile ("^([RC])[0-9]+[ \t]+(.*)[ \t]+(.*)$")
patterns['branch'] = re.compile ("refs/remotes/origin/([^,]*)")
patterns['local-branch'] = re.compile ("refs/heads/([^,]*)")
1 change: 0 additions & 1 deletion pycvsanaly2/extensions/Content.py
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@
from pycvsanaly2.extensions import Extension, register_extension, \
ExtensionRunError
from pycvsanaly2.Database import SqliteDatabase, MysqlDatabase, statement
from pycvsanaly2.Config import Config
from pycvsanaly2.utils import printdbg, printerr, uri_to_filename, to_utf8
from pycvsanaly2.profile import profiler_start, profiler_stop
from FileRevs import FileRevs