|
@@ -6,7 +6,7 @@ import time
|
|
|
from dulwich.repo import Repo
|
|
|
|
|
|
if len(sys.argv) < 2:
|
|
|
- print "usage: %s filename" % (sys.argv[0], )
|
|
|
+ print("usage: %s filename" % (sys.argv[0], ))
|
|
|
sys.exit(1)
|
|
|
|
|
|
r = Repo(".")
|
|
@@ -15,7 +15,7 @@ w = r.get_walker(paths=[sys.argv[1]], max_entries=1)
|
|
|
try:
|
|
|
c = iter(w).next().commit
|
|
|
except StopIteration:
|
|
|
- print "No file %s anywhere in history." % sys.argv[1]
|
|
|
+ print("No file %s anywhere in history." % sys.argv[1])
|
|
|
else:
|
|
|
- print "%s was last changed at %s by %s (commit %s)" % (
|
|
|
- sys.argv[1], c.author, time.ctime(c.author_time), c.id)
|
|
|
+ print("%s was last changed at %s by %s (commit %s)" % (
|
|
|
+ sys.argv[1], c.author, time.ctime(c.author_time), c.id))
|