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

Re: [PATCH 1/1] git-p4: recover from inconsistent perforce history

From
Andrew Oakley <andrew@adoakley.name>
Date
Feb 8, 2019, 09:07 UTC
Message-ID
<20190208090704.68154885@ado-amd-gentoo.home.adoakley.name>
In-Reply-To
<20190207080420.395c521be017dafb6561784b@diamand.org>

On Thu, 7 Feb 2019 08:04:20 +0000 Luke Diamand <luke@diamand.org> wrote:

Show 15 quoted lines
> On Wed,  6 Feb 2019 19:42:19 +0000
> andrew@adoakley.name wrote:
> 
> > From: Andrew Oakley <andrew@adoakley.name>
> > 
> > Perforce allows you commit files and directories with the same
> > name, so you could have files //depot/foo and //depot/foo/bar both
> > checked in.  A p4 sync of a repository in this state fails.
> > Deleting one of the files recovers the repository.
> > 
> > When this happens we want git-p4 to recover in the same way as
> > perforce.  
> 
> I'm finding the test fails for me on a clean git repo, although I
> can't see any obvious reason why.

This introduced a failure when client specs are being used. I wasn't populating the cache (update_client_spec_path_cache) before checking if a file should be included (inClientSpec). I can rearrange the code to fix this.

Thanks
-- 
Andrew Oakley
Previous: Luke DiamandNext: andrew@adoakley.name
Message 3 of 5 in “git-p4: recover from inconsistent perforce history”
  1. 1/1 git-p4: recover from inconsistent perforce historyandrew@adoakley.name, Feb 6, 2019
  2. Luke DiamandFeb 7, 2019
  3. Andrew OakleyFeb 8, 2019
  4. git-p4: recover from inconsistent perforce historyandrew@adoakley.name, Feb 8, 2019
  5. Andrew OakleyFeb 11, 2019

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.