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

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:05

Mark Drago [off-list ref] 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?

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

From: Mark Drago <hidden>
Date: 2016-06-15 22:44:05

On Jan 15, 2008 5:17 AM, Junio C Hamano [off-list ref] wrote:
Mark Drago [off-list ref] writes:
quoted
+    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.

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

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:05

Hi,

On Tue, 15 Jan 2008, Mark Drago wrote:
On Jan 15, 2008 5:17 AM, Junio C Hamano [off-list ref] wrote:
quoted
Mark Drago [off-list ref] writes:
quoted
+    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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help