Skip to contentSkip to conversation

Correction to git-p4 "exclude" change

PATCH In review Luke Diamand 2 participants 5 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Correction to git-p4 "exclude" change

My previous change for adding support for "exclude" to git-p4 "sync" was incorrect, missing out a comma, which stopped git-p4 from working. This change fixes that.

I've also noticed that t9814-git-p4-rename.sh has stopped working; I'm going to follow up with a fix for that once I've worked out what's wrong with it. There's a small shell syntax problem (missing "esac") but after fixing that it still fails, so I'm not sure what's happening yet. It was discussed a while back.

Luke Diamand (1):
git-p4: correct "exclude" change

 git-p4.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.3.0.rc2.188.g4b64765.dirty
#1 lore raw

PATCH 1/1 git-p4: correct "exclude" change

The previous change for excluding paths in the "sync" subcommand was incorrect, missing a comma, preventing git-p4 from working.

---
 git-p4.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
git-p4.py +1 -1
index 6ff0b76..549022e 100755
@@ -1915,7 +1915,7 @@ class P4Sync(Command, P4UserMap):
                 optparse.make_option("--keep-path", dest="keepRepoPath", action='store_true',
                                      help="Keep entire BRANCH/DIR/SUBDIR prefix during import"),
                 optparse.make_option("--use-client-spec", dest="useClientSpec", action='store_true',
-                                     help="Only sync files that are included in the Perforce Client Spec")
+                                     help="Only sync files that are included in the Perforce Client Spec"),
                 optparse.make_option("-/", dest="cloneExclude",
                                      action="append", type="string",
                                      help="exclude depot path"),
Signature · 1 line
2.3.0.rc2.188.g4b64765.dirty
#2 lore raw
In reply to Luke Diamand
Quoted 10 lines · Luke Diamand

My previous change for adding support for "exclude" to git-p4 "sync" was incorrect, missing out a comma, which stopped git-p4 from working. This change fixes that.

I've also noticed that t9814-git-p4-rename.sh has stopped working; I'm going to follow up with a fix for that once I've worked out what's wrong with it. There's a small shell syntax problem (missing "esac") but after fixing that it still fails, so I'm not sure what's happening yet. It was discussed a while back.

Quoted 5 lines

Luke Diamand (1):
git-p4: correct "exclude" change

 git-p4.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks.

Will keep out of 'master' for now. It may not be a bad idea to squash this fix (and any futher ones if needed) into a single patch when we rewind 'next' after 2.3 final is tagged.

#4 lore raw
In reply to a message not in the archive

(Resending as plain text).

I could be wrong about this, but my correction above doesn't seem to be in 'next'. Does that mean (reading your last "what's cooking") that the broken version is going to go out to 'master' soon?

Thanks,
Luke

Quoted 35 lines · Luke Diamand

I could be wrong about this, but my correction above doesn't seem to be in 'next'. Does that mean (reading your last "what's cooking") that the broken version is going to go out to 'master' soon?

Thanks,
Luke

Quoted 25 lines · Junio C Hamano
Quoted 10 lines · Luke Diamand

My previous change for adding support for "exclude" to git-p4 "sync" was incorrect, missing out a comma, which stopped git-p4 from working. This change fixes that.

I've also noticed that t9814-git-p4-rename.sh has stopped working; I'm going to follow up with a fix for that once I've worked out what's wrong with it. There's a small shell syntax problem (missing "esac") but after fixing that it still fails, so I'm not sure what's happening yet. It was discussed a while back.

Quoted 5 lines

Luke Diamand (1):
git-p4: correct "exclude" change

 git-p4.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks.

Will keep out of 'master' for now. It may not be a bad idea to squash this fix (and any futher ones if needed) into a single patch when we rewind 'next' after 2.3 final is tagged.

#5 lore raw
Quoted 5 lines · Luke Diamand

(Resending as plain text).

I could be wrong about this, but my correction above doesn't seem to be in 'next'. Does that mean (reading your last "what's cooking") that the broken version is going to go out to 'master' soon?

The current copy of "What's cooking" I have reads like so:

* ld/p4-exclude-in-sync (2015-01-28) 2 commits
- git-p4: correct "exclude" change (merged to 'next' on 2015-01-22 at f6f1fc7)
+ git-p4: support excluding paths on sync

Will squash into one after 2.3 final.

As we are too late to merge anything new to 'master', and the broken one is not in 'master', I have been playing lazy to make time to tend to other issues ;-) After 2.3 final, we would rewind the tip of 'next' and will rebuild, and when that happens, I am hoping that we can make these two into one commit that does not have the "oops, I forgot a comma and broke the entire command" fix-up as a separate commit.

Or did I mis-read you? Do we have broken code already in 'master' that this hot-fix needs to be applied to unbreak?