Commits

Steve Borho  committed 814130b

nautilus: directly use util.datestr()

More cut-pase :)

  • Participants
  • Parent commits 51f5e11

Comments (0)

Files changed (1)

File contrib/nautilus-thg.py

 import gconf
 import gtk
 import gobject
-from mercurial import hg, ui, repo, match
+from mercurial import hg, ui, repo, match, util
 from mercurial.node import short
 import nautilus
 import os
 import tempfile
 import time
 import urllib
-from hggtk.hglib import displaytime
-
 TORTOISEHG_PATH = '~/tools/tortoisehg-dev'
 TERMINAL_KEY = '/desktop/gnome/applications/terminal/exec'
 
             rev = ctx.rev()
         ctx = repo.changectx(rev)
         node = short(ctx.node())
-        date = displaytime(ctx.date())
+        date = util.datestr(ctx.date(), '%Y-%m-%d %H:%M:%S %1%2')
         parents = '\n'.join([short(p.node()) for p in ctx.parents()])
         description = ctx.description()
         user = ctx.user()