Changeset 45cf688c6bad…
Parent aa644a8d7031…
by
Changes to 2 files · Browse files at 45cf688c6bad Showing diff from parent aa644a8d7031 Diff from another changeset...
@@ -167,7 +167,7 @@ ('black', '#aaffaa', branch)
author = hglib.toutf(hglib.username(ctx.user()))
- age = templatefilters.age(ctx.date())
+ age = hglib.age(ctx.date())
color = self.color_func(revid, author)
if revid in self.wcparents:
|
@@ -211,6 +211,9 @@ def utctime(date):
return time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(date[0]))
+def age(date):
+ return templatefilters.age(date)
+
def username(user):
author = templatefilters.person(user)
if not author:
|
Loading...