From: Luke Diamand <hidden> Date: 2016-06-15 22:53:48
This patch series fixes two bugs in my git p4 import/export code, and
adds a test case for them.
Luke Diamand (3):
git p4: add test for tag import/export enabled via config
git p4: fix bug when verbose enabled with tag export
git p4: fix bug when enabling tag import/export via config variables
git-p4.py | 6 +++---
t/t9811-git-p4-label-import.sh | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+), 3 deletions(-)
--
1.7.10.282.g2120.dirty
From: Luke Diamand <hidden> Date: 2016-06-15 22:53:48
This adds a test for git p4 to check it can import/export tags
when enabled via a config variable rather than on the command
line.
Signed-off-by: Luke Diamand <redacted>
---
t/t9811-git-p4-label-import.sh | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
@@ -195,6 +195,26 @@ test_expect_success 'tag that cannot be exported' ')'+test_expect_success'use git config to enable import/export of tags''+gitp4clone--verbose--dest="$git"//depot@all&&+(+cd"$git"&&+gitconfiggit-p4.exportLabelstrue&&+gitconfiggit-p4.importLabelstrue&&+gittagCFG_A_GIT_TAG&&+gitp4rebase--verbose&&+gitp4submit--verbose&&+gittag&&+gittag|grepTAG_F1_1+)&&+(+cd"$cli"&&+p4labels&&+p4labels|grepCFG_A_GIT_TAG+)+'++ test_expect_success'kill p4d''kill_p4d'
From: Luke Diamand <hidden> Date: 2016-06-15 22:53:48
Use Python's True, not true. Causes failure when enabling tag
import or export in "git p4" using a config option rather than
the command line.
Signed-off-by: Luke Diamand <redacted>
---
git-p4.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -1302,7 +1302,7 @@ class P4Submit(Command, P4UserMap):ifnotm.match(name):ifverbose:-print"tag %s does not match regexp %s"%(name,validTagRegexp)+print"tag %s does not match regexp %s"%(name,validLabelRegexp)continue# Get the p4 commit this corresponds to
From: Pete Wyckoff <hidden> Date: 2016-06-15 22:53:49
luke@diamand.org wrote on Fri, 11 May 2012 07:25 +0100:
This patch series fixes two bugs in my git p4 import/export code, and
adds a test case for them.
Luke Diamand (3):
git p4: add test for tag import/export enabled via config
git p4: fix bug when verbose enabled with tag export
git p4: fix bug when enabling tag import/export via config variables
git-p4.py | 6 +++---
t/t9811-git-p4-label-import.sh | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+), 3 deletions(-)
These fixes look obviously good, and maint-worthy. Ack.
-- Pete