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

Re: P4 Sync problem

From
Tor Arvid Lund <torarvid@gmail.com>
Date
Nov 11, 2009, 08:43 UTC
Message-ID
<1a6be5fa0911110043i63b5c032s7924f9f1cdfe32ee@mail.gmail.com>
In-Reply-To
<loom.20091110T145046-137@post.gmane.org>
On Tue, Nov 10, 2009 at 2:56 PM, Dmitry Smirnov <divis1969@gmail.com> wrote:
Show 8 quoted lines
> Hi,
>
> I'm trying to import Perfoce client into Git repository.
> I had configured git-p4.clent=MYCLIENT and git-p4.useclientspec=true.
>
> When runnign git p4 sync --verbose I got the follwing:
>
> c:\p4\views\Git\p4client>git p4 sync --verbose
<snip>
Show 10 quoted lines
> Traceback (most recent call last):
>  File "/usr/sbin/git-core//git-p4", line 1929, in ?
>    main()
>  File "/usr/sbin/git-core//git-p4", line 1924, in main
>    if not cmd.run(args):
>  File "/usr/sbin/git-core//git-p4", line 1676, in run
>    changes = p4ChangesForPaths(self.depotPaths, self.changeRange)
>  File "/usr/sbin/git-core//git-p4", line 442, in p4ChangesForPaths
>    assert depotPaths
> AssertionError

Hi. So - I think the problem is that git-p4 doesn't understand what it is you want to sync. The git-p4.useclientspec flag was created for the purpose where your perforce depot may look like this:

//depot/project1 //depot/project1/source_code //depot/project1/documentation //depot/project1/some_large_collection_of_binaries

Then - if I set up my client spec like:

//depot/... -//depot/project1/some_large_collection_of_binaries

... and do
git p4 sync //depot/project1@all

... it should get all project1 files except the "some_large_collection_of_binaries" subdirectory (provided that you have set the git-p4.client and git-p4.useclientspec).

-Tor Arvid-
Previous: Dmitry SmirnovNext: Dmitry Smirnov
Message 2 of 9 in “P4 Sync problem”
  1. Dmitry SmirnovNov 10, 2009
  2. Tor Arvid LundNov 11, 2009
  3. Dmitry SmirnovNov 11, 2009
  4. Tor Arvid LundNov 11, 2009
  5. Dmitry SmirnovNov 11, 2009
  6. Tor Arvid LundNov 11, 2009
  7. Dmitry SmirnovNov 11, 2009
  8. masonkJul 22, 2010
  9. Pete WyckoffNov 15, 2009

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.