Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: git-p4 move/delete errors

From: Thomas Berg <hidden>
Date: 2016-06-15 22:49:06

On Fri, Jul 9, 2010 at 11:20 PM, Lance Linder [off-list ref] wrote:
Thanks for the tip about keyword expansion. Fortunately for me we don't use those.
We don't either.
When I was trying to debug this the problem seemed to be that the original file is removed from the local Perforce workspace before the p4 diff command is issued. I am not sure how the server upgrade caused this behavior but it was the only thing that changed when I first started seeing the error.
Hasn't Perforce always deleted files immediately when they are marked
for deletion?

Anyway, as far as I can see from the git-p4 source code, the command
is only used to generate the diff preview in the interactive window
that pops up when you "git p4 submit". So if you replace the line
diff = p4_read_pipe("diff -du ...")
with
diff = ""

it should start working again (the diff preview part will become
empty). I'm unable to test it right now, but fairly sure it will work.
I'll see if I can find a better solution when I have access to the
Perforce server again.

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