Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable hglib: add age() function to convert from date

Changeset 45cf688c6bad

Parent aa644a8d7031

by Yuki KODAMA

Changes to 2 files · Browse files at 45cf688c6bad Showing diff from parent aa644a8d7031 Diff from another changeset...

 
167
168
169
170
 
171
172
173
 
167
168
169
 
170
171
172
173
@@ -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
212
213
 
 
 
214
215
216
 
211
212
213
214
215
216
217
218
219
@@ -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: