summaryrefslogtreecommitdiffstats
path: root/fit.py
diff options
context:
space:
mode:
Diffstat (limited to 'fit.py')
-rw-r--r--fit.py36
1 files changed, 4 insertions, 32 deletions
diff --git a/fit.py b/fit.py
index c81fb06..9c9ccae 100644
--- a/fit.py
+++ b/fit.py
@@ -1,3 +1,6 @@
+#!/usr/bin/python2
+# -*- coding: utf-8 -*-
+
import os, time
import collections
@@ -75,7 +78,7 @@ class Fit:
existing_builders = [(os.sep, root)]
for dir_entry in dir_path:
try:
- new_oid = current_node[str(dir_entry)].oid
+ new_oid = current_node[dir_entry].oid
current_node = self.repo[new_oid]
existing_builders.append((
@@ -137,34 +140,3 @@ class Fit:
except:
return []
-
-
-#fit = Fit('static/fit.git')
-#fit.add_file('main.c', 'alp3/2007/main.c')
-#fit.add_file('main.c', 'alp3/2008/main.c')
-#fit.add_file('main.c', 'alp3/2009/main.c')
-#
-#print('All modules')
-#for name in fit.get_modules():
-# print('\t' + name)
-#
-#print('Module: alp4')
-#for (year,items) in fit.get_module('alp4'):
-# print('\t' + year)
-# for name in items:
-# print('\t\t' + name)
-#
-#for name, oid in fit.list('tags/aws'):
-# print(name)
-#
-#print("All files")
-#for name, oid in fit.list_directories():
-# print(name)
- #tags = ','.join(map(lambda x: x[0], fit.get_file_with_tags(oid)))
- #print("* %s (%s)" % (name, tags))
- #print(fit.get_file(oid) + "\n")
-#
-#print("\nAll tags")
-#for name, oid in fit.get_all_tags():
-# files = ','.join(map(lambda x: x[0], fit.get_files_for_tags([name])))
-# print("* %s (%s)" % (name, files))