On Wed, Jan 14, 2009 at 12:29 PM, TK Soh <[email protected]> wrote:
> On Wed, Jan 14, 2009 at 3:20 AM, Steve Borho <[email protected]> wrote:
>> # HG changeset patch
>> # User Steve Borho <[email protected]>
>> # Date 1231903007 21600
>> # Node ID 50d8e21ba7f9c77df1acb2b951cbf465d06202dd
>> # Parent  7335932c6d07feef59e112bd8d3919de21f3de5a
>> nautilus: directly use util.datestr()
>>
>> More cut-pase :)
>>
>> diff --git a/contrib/nautilus-thg.py b/contrib/nautilus-thg.py
>> --- a/contrib/nautilus-thg.py
>> +++ b/contrib/nautilus-thg.py
>> @@ -12,7 +12,7 @@
>>  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
>> @@ -21,7 +21,6 @@
>>  import tempfile
>>  import time
>>  import urllib
>> -from hggtk.hglib import displaytime
>>
>>  TORTOISEHG_PATH = '~/tools/tortoisehg-dev'
>>  TERMINAL_KEY = '/desktop/gnome/applications/terminal/exec'
>> @@ -514,7 +513,7 @@
>>              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()
>
> I'll go with Steve's patch. Unless Steve disagree somehow.
>

ok with me. trying to import hggtk.hglib in nautilus from home will
require to append the sys path.
It will be a "back and forth" testing with Steve. So it is best that
you apply Steve patch.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to