Skip to content

Commit

Permalink
Merge branch 'pw/maint-p4' into maint
Browse files Browse the repository at this point in the history
* pw/maint-p4:
  git-p4: fix keyword-expansion regex
  • Loading branch information
Junio C Hamano committed Nov 27, 2008
2 parents a0178ae + 3d51c85 commit b21a226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,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

Expand Down

0 comments on commit b21a226

Please sign in to comment.