From: Lance Linder <llinder@gmail.com>
To: Tor Arvid Lund <torarvid@gmail.com>
Cc: Thomas Berg <merlin66b@gmail.com>, git@vger.kernel.org
Subject: Re: git-p4 move/delete errors
Date: Fri, 9 Jul 2010 16:20:21 -0500 [thread overview]
Message-ID: <F94DAB9A-A06D-46ED-9AAA-EDE850365054@gmail.com> (raw)
In-Reply-To: <AANLkTin7eMFXT1FwZ2ojcAYgqIMSYnkz-uCoRlHvV6Tm@mail.gmail.com>
Thanks for the tip about keyword expansion. Fortunately for me we don't use those.
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.
Lance
On Jul 9, 2010, at 3:21 PM, Tor Arvid Lund wrote:
> On Fri, Jul 9, 2010 at 5:05 PM, Thomas Berg <merlin66b@gmail.com> wrote:
>> Hi,
>>
>> On Fri, May 28, 2010 at 2:30 AM, Lance Linder <llinder@gmail.com> wrote:
>>> Until recently I have been successfully using git-p4 with much joy and
>>> happiness. Then suddenly git-p4 submit started throwing "Command
>>> failed: p4 diff -du ..." when ever I delete or move a file.
>>>
>>> We recently upgraded our perforce server ( Rev.
>>> P4D/NTX86/2009.2/238357 (2010/03/15) ). It was about this time that
>>> the problem came up. First thing I did of course was upgrade to the
>>> latest version of git ( now on 1.7.1 ) but the problem still persists.
>>> Next I updated my p4 client ( Rev. P4/MACOSX104U/2009.2/238357
>>> (2010/03/15) ) but still same problem. All other submits work fine as
>>> long as there are not any deletions or moves.
>> [...]
>>>
>>> Anyone else seeing these issues?
>
> Hi. Are any of you using Perforce's "keyword expansion" stuff? I mean
> the thing where you put a:
>
> $Id$
>
> keyword in a file, and it expands to something like:
>
> $Id: //depot/test/main.c#10 $
>
> If I do that (and, unfortunately, people at my $dayjob do do that),
> I'm almost sure that this is the error I got... The reason seems to be
> that when git imports the file from P4, the keyword expansions get
> stripped off (as in: reset to just $Id$). And then the p4 diff fails
> if the $Id$ type lines are included in the diff. When deleting a file,
> all lines are included in the diff...
>
> It hasn't itched me hard enough that I have tried hard to solve it
> (unfortunately). I simply do deletes from P4 instead of git-p4 :-/
>
> -Tor Arvid-
>
>> Indeed, we just upgraded our Perforce server too, and now I'm getting
>> this exact error. Did you find a solution to the problem?
>>
>> If not I'm very interested in solving it. Seems like the p4 diff
>> command has changed behaviour and broken the git-p4 script.
>>
>> Cheers,
>> Thomas
>> --
>> To unsubscribe from this list: send the line "unsubscribe git" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
next prev parent reply other threads:[~2010-07-09 21:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-28 0:30 git-p4 move/delete errors Lance Linder
2010-07-09 15:05 ` Thomas Berg
2010-07-09 17:06 ` Lance Linder
2010-07-09 20:21 ` Tor Arvid Lund
2010-07-09 21:20 ` Lance Linder [this message]
2010-07-09 21:32 ` Thomas Berg
2010-07-13 11:22 ` Thomas Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F94DAB9A-A06D-46ED-9AAA-EDE850365054@gmail.com \
--to=llinder@gmail.com \
--cc=git@vger.kernel.org \
--cc=merlin66b@gmail.com \
--cc=torarvid@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).