git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mark Drago" <markdrago@gmail.com>
To: "Junio C Hamano" <gitster@pobox.com>
Cc: git@vger.kernel.org, brian.ewins@gmail.com, stelian@popies.net
Subject: Re: [PATCH] hg-to-git: improve popen calls
Date: Tue, 15 Jan 2008 08:03:37 -0500	[thread overview]
Message-ID: <af675f7f0801150503p26fba583tfb5827717b67705f@mail.gmail.com> (raw)
In-Reply-To: <7vr6gjfl4z.fsf@gitster.siamese.dyndns.org>

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

Mark.

  reply	other threads:[~2008-01-15 13:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-15  1:11 [PATCH] hg-to-git: improve popen calls Mark Drago
2008-01-15  9:52 ` Stelian Pop
2008-01-15 10:15   ` Junio C Hamano
2008-01-15 10:17 ` Junio C Hamano
2008-01-15 13:03   ` Mark Drago [this message]
2008-01-15 13:11     ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=af675f7f0801150503p26fba583tfb5827717b67705f@mail.gmail.com \
    --to=markdrago@gmail.com \
    --cc=brian.ewins@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=stelian@popies.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).