* [PATCH] git-p4: fix keyword-expansion regex
@ 2008-11-26 18:52 Pete Wyckoff
2008-11-26 20:33 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Pete Wyckoff @ 2008-11-26 18:52 UTC (permalink / raw)
To: git
This text:
my $dir = $File::Find::dir;
return if ($dir !~ m,$options->{dirpat}$,);
was improperly converted to:
my $dir = $File$dir !~ m,$options->{dirpat}$,);
by the keyword identifier expansion code. Add a \n
to make sure the regex doesn't go across end-of-line
boundaries.
Signed-off-by: Pete Wyckoff <pw@padd.com>
---
contrib/fast-import/git-p4 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 9b04ca5..09317af 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -1005,7 +1005,7 @@ class P4Sync(Command):
if stat['type'] in ('text+ko', 'unicode+ko', 'binary+ko'):
text = re.sub(r'(?i)\$(Id|Header):[^$]*\$',r'$\1$', text)
elif stat['type'] in ('text+k', 'ktext', 'kxtext', 'unicode+k', 'binary+k'):
- text = re.sub(r'\$(Id|Header|Author|Date|DateTime|Change|File|Revision):[^$]*\$',r'$\1$', text)
+ text = re.sub(r'\$(Id|Header|Author|Date|DateTime|Change|File|Revision):[^$\n]*\$',r'$\1$', text)
contents[stat['depotFile']] = text
--
1.5.6.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] git-p4: fix keyword-expansion regex
2008-11-26 18:52 [PATCH] git-p4: fix keyword-expansion regex Pete Wyckoff
@ 2008-11-26 20:33 ` Junio C Hamano
2008-11-27 16:45 ` Simon Hausmann
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2008-11-26 20:33 UTC (permalink / raw)
To: Pete Wyckoff; +Cc: git
I will queue this to 'pu' and wait for an Ack from git-p4 folks. Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] git-p4: fix keyword-expansion regex
2008-11-26 20:33 ` Junio C Hamano
@ 2008-11-27 16:45 ` Simon Hausmann
2008-11-28 22:29 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Simon Hausmann @ 2008-11-27 16:45 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Pete Wyckoff, git
On Wednesday 26 November 2008 Junio C Hamano, wrote:
> I will queue this to 'pu' and wait for an Ack from git-p4 folks. Thanks.
Acked-by: Simon Hausmann <simon@lst.de>
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] git-p4: fix keyword-expansion regex
2008-11-27 16:45 ` Simon Hausmann
@ 2008-11-28 22:29 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2008-11-28 22:29 UTC (permalink / raw)
To: Simon Hausmann; +Cc: Pete Wyckoff, git
Simon Hausmann <simon@lst.de> writes:
> On Wednesday 26 November 2008 Junio C Hamano, wrote:
>> I will queue this to 'pu' and wait for an Ack from git-p4 folks. Thanks.
>
> Acked-by: Simon Hausmann <simon@lst.de>
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-11-28 22:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 18:52 [PATCH] git-p4: fix keyword-expansion regex Pete Wyckoff
2008-11-26 20:33 ` Junio C Hamano
2008-11-27 16:45 ` Simon Hausmann
2008-11-28 22:29 ` Junio C Hamano
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).