Re: What's cooking in git.git (Jun 2016, #05; Thu, 16)

3 messages, 2 authors, 2016-06-19 · open the first message on its own page

Re: What's cooking in git.git (Jun 2016, #05; Thu, 16)

From: Junio C Hamano <hidden>
Date: 2016-06-19 18:13:52

Lars Schneider [off-list ref] writes:
quoted hunk
This seems to fix the issue:
--- a/git-p4.py
+++ b/git-p4.py
@@ -2274,7 +2274,7 @@ class P4Sync(Command, P4UserMap):
         self.useClientSpec_from_options = False
         self.clientSpecDirs = None
         self.tempBranches = []
-        self.tempBranchLocation = "git-p4-tmp"
+        self.tempBranchLocation = "refs/heads/git-p4-tmp"
         self.largeFileSystem = None
 
         if gitConfig('git-p4.largeFileSystem'):
Anywhere in refs/ would be OK, but don't you need to adjust the
test, too?

Even though I do not use git-p4, I'd imagine that I would be upset
if temporary refs that are used only during sync contaminated the
set of local branches I have, if I were a user of git-p4.  Would it
make sense to use "refs/git-p4-tmp" or something instead?

Re: What's cooking in git.git (Jun 2016, #05; Thu, 16)

From: Lars Schneider <hidden>
Date: 2016-06-19 18:49:43

On 19 Jun 2016, at 20:13, Junio C Hamano [off-list ref] wrote:

Lars Schneider [off-list ref] writes:
quoted
This seems to fix the issue:
--- a/git-p4.py
+++ b/git-p4.py
@@ -2274,7 +2274,7 @@ class P4Sync(Command, P4UserMap):
        self.useClientSpec_from_options = False
        self.clientSpecDirs = None
        self.tempBranches = []
-        self.tempBranchLocation = "git-p4-tmp"
+        self.tempBranchLocation = "refs/heads/git-p4-tmp"
        self.largeFileSystem = None

        if gitConfig('git-p4.largeFileSystem'):
Anywhere in refs/ would be OK, but don't you need to adjust the
test, too?

Even though I do not use git-p4, I'd imagine that I would be upset
if temporary refs that are used only during sync contaminated the
set of local branches I have, if I were a user of git-p4.  Would it
make sense to use "refs/git-p4-tmp" or something instead?
Yes, "refs/git-p4-tmp" would work equally well.

- Lars

Re: What's cooking in git.git (Jun 2016, #05; Thu, 16)

From: Lars Schneider <hidden>
Date: 2016-06-19 18:54:08

On 19 Jun 2016, at 20:49, Lars Schneider [off-list ref] wrote:

quoted
On 19 Jun 2016, at 20:13, Junio C Hamano [off-list ref] wrote:

Lars Schneider [off-list ref] writes:
quoted
This seems to fix the issue:
--- a/git-p4.py
+++ b/git-p4.py
@@ -2274,7 +2274,7 @@ class P4Sync(Command, P4UserMap):
       self.useClientSpec_from_options = False
       self.clientSpecDirs = None
       self.tempBranches = []
-        self.tempBranchLocation = "git-p4-tmp"
+        self.tempBranchLocation = "refs/heads/git-p4-tmp"
       self.largeFileSystem = None

       if gitConfig('git-p4.largeFileSystem'):
Anywhere in refs/ would be OK, but don't you need to adjust the
test, too?

Even though I do not use git-p4, I'd imagine that I would be upset
if temporary refs that are used only during sync contaminated the
set of local branches I have, if I were a user of git-p4.  Would it
make sense to use "refs/git-p4-tmp" or something instead?
Yes, "refs/git-p4-tmp" would work equally well.
Plus, you are right. A minor test adjustment is necessary (although
the tests pass without adjustment). I will post a full patch.

- Lars
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help