git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] hg-to-git: improve popen calls

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 15, 2008, 13:11 UTC
Message-ID
<alpine.DEB.1.00.0801151311130.5289@eeepc-johanness>
In-Reply-To
<af675f7f0801150503p26fba583tfb5827717b67705f@mail.gmail.com>
Hi,
On Tue, 15 Jan 2008, Mark Drago wrote:
Show 16 quoted lines
> On Jan 15, 2008 5:17 AM, Junio C Hamano <gitster@pobox.com> wrote:
> > Mark Drago <markdrago@gmail.com> writes:
> >
> > > +    log_data = os.popen('hg log -r %d --template "{tags}\n{date|date}\n{author}\n"' % cset).readlines()
> >
> > I've already seen Stelian's Ack, but just for my sanity, let me
> > make sure one thing.  The above {date|date} is correct, not a
> > typo?
> 
> Yeah.  Everything after the pipe character is a filter and there is a
> template keyword and a filter that are both called 'date'.
> 
> mdrago@laptop:~/Code/trunk$ hg log -r 4 --template '{date}\n'
> 1197080765.018000
> mdrago@laptop:~/Code/trunk$ hg log -r 4 --template '{date|date}\n'
> Fri Dec 07 21:26:05 2007 -0500
Heh ;-)  And people call _git_ confusing...

Ciao, Dscho

Previous: Mark Drago
Message 6 of 6 in “hg-to-git: improve popen calls”
  1. hg-to-git: improve popen callsMark Drago, Jan 15, 2008
  2. Stelian PopJan 15, 2008
  3. Junio C HamanoJan 15, 2008
  4. Junio C HamanoJan 15, 2008
  5. Mark DragoJan 15, 2008
  6. Johannes SchindelinJan 15, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.