git-p4: RCS keyword handling
PATCH v5 1/1 git-p4: RCS keyword handling
Updated RCS keyword fix for git-p4, incorporating fixes to test cases missed earlier.
Luke Diamand (1):
git-p4: add initial support for RCS keywords
Documentation/git-p4.txt | 5 + contrib/fast-import/git-p4 | 118 ++++++++++++-- t/t9810-git-p4-rcs.sh | 388 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 501 insertions(+), 10 deletions(-) create mode 100755 t/t9810-git-p4-rcs.sh
Signature · 1 line
1.7.9.259.ga92e
PATCH v5 1/1 git-p4: add initial support for RCS keywords
RCS keywords cause problems for git-p4 as perforce always expands them (if +k is set) and so when applying the patch, git reports that the files have been modified by both sides, when in fact they haven't.
This change means that when git-p4 detects a problem applying a patch, it will check to see if keyword expansion could be the culprit. If it is, it strips the keywords in the p4 repository so that they match what git is expecting. It then has another go at applying the patch.
This behaviour is enabled with a new git-p4 configuration option and is off by default.
--- Documentation/git-p4.txt | 5 + contrib/fast-import/git-p4 | 118 ++++++++++++-- t/t9810-git-p4-rcs.sh | 388 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 501 insertions(+), 10 deletions(-) create mode 100755 t/t9810-git-p4-rcs.sh
Documentation/git-p4.txt +5 -0
@@ -483,6 +483,11 @@ git-p4.skipUserNameCheck:: user map, 'git p4' exits. This option can be used to force submission regardless. +git-p4.attemptRCSCleanup: + If enabled, 'git p4 submit' will attempt to cleanup RCS keywords + ($Header$, etc). These would otherwise cause merge conflicts and prevent + the submit going ahead. This option should be considered experimental at + present. IMPLEMENTATION DETAILS ----------------------
contrib/fast-import/git-p4 +108 -10
157 lines not on this page · raw message
t/t9810-git-p4-rcs.sh new file +388 -0
388 lines not on this page · raw message
Signature · 1 line
1.7.9.259.ga92e
Re: [PATCHv5] git-p4: add initial support for RCS keywords
Hmm... I somehow was expecting that the patch will be an incremental update to what has already been queued in 'next' for the past several days, with its commit log describing what the incremental improvements are.
I'll revert it out and apply this on top. Thanks.