git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix git p4 sync errors

From
MAMatt Arsenault <arsenm2@gmail.com>
Date
Oct 25, 2012, 02:41 UTC
Message-ID
<F0F92B0A-D37F-40D4-A0DF-43EEDA2818B9@gmail.com>
In-Reply-To
<7vwqyjfxwd.fsf@alter.siamese.dyndns.org>
On Oct 21, 2012, at 12:06 , Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> 
>> 
>> This solves errors in some cases when syncing renamed files.
> 
> Can you be a bit more descriptive?  What are "errors in some case"?
> 
It might just be when files are renamed. I ran into this after months of using it, and I'm skeptical that in that time no files were ever renamed. I'm not sure what was special about the file that was renamed. (There also might have been deleted files in the same commit, not sure if that matters)
> In short, what I am getting at are:
> 
> - What breaks by not passing "-s"?  What are the user visible
>   symptoms?

There's a key error on the line line 2198: epoch = details["time"] The details object is an error different fields set (I don't remember what it is exactly, I'm not at work right now)

> 
> - Why is it a bug not to pass "-s"?  How does the bug happen?
I encountered this one time after using it for months. One day I couldn't git p4 rebase with the key error.  I searched for the error and found some version of git-p4 that fixed a similar error by adding the -s to describe. Adding the -s fixed the error and everything seemed to be working correctly.
Previous: Junio C HamanoNext: Christian Couder
Message 3 of 5 in “Fix git p4 sync errors”
  1. Fix git p4 sync errorsMatt Arsenault, Oct 21, 2012
  2. Junio C HamanoOct 21, 2012
  3. Matt ArsenaultOct 25, 2012
  4. Christian CouderOct 26, 2012
  5. Pete WyckoffOct 28, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.