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

Re: P4 Sync problem

From
Mmasonk <mason.kramer@gmail.com>
Date
Jul 22, 2010, 18:21 UTC
Message-ID
<1279822914118-5326585.post@n2.nabble.com>
In-Reply-To
<loom.20091111T154425-182@post.gmane.org>

Hi, I know this is an old thread, but I think it might be relevant. (At any rate, at least you know I've been looking).

I'm trying to use git-p4 with a very large P4 repository, of which my client view is a small fraction. My client view is within the administrator-set file limit of P4 files. E.G., p4 sync //depot/... works.

When I call git-p4 sync or clone, however, it bumps into the limit. Even if I am using client spec and detecting branches. If p4 were successfully detecting my branches -or- using my client spec, I would not be running into the limit. But:

git p4 sync //depot@all --use-client-spec --detect-branches --verbose
Syncing with origin first by calling git fetch origin
executing git fetch origin
Reading pipe: git config git-p4.user
Reading pipe: git config git-p4.password
Reading pipe: git config git-p4.port
Reading pipe: git config git-p4.host
Reading pipe: git config git-p4.client
p4 -u mkramer -c mkramer -G client -o
Opening pipe: p4 -u mkramer -c mkramer -G client -o
Reading pipe: git rev-parse --symbolic  --remotes
Reading pipe: git rev-parse p4/master
p4-git branches: []
initial parents: {}
Getting p4 changes for //depot/...
p4 -u mkramer -c mkramer changes //depot/...
Reading pipe: p4 -u mkramer -c mkramer changes //depot/...
Request too large (over 110000); see 'p4 help maxresults'.
Traceback (most recent call last):
  File "/home/mkramer/git/bin/git-p4", line 1924, in <module>
    main()
  File "/home/mkramer/git/bin/git-p4", line 1919, in main
    if not cmd.run(args):
  File "/home/mkramer/git/bin/git-p4", line 1671, in run
    changes = p4ChangesForPaths(self.depotPaths, self.changeRange)
  File "/home/mkramer/git/bin/git-p4", line 444, in p4ChangesForPaths
    for p in depotPaths]))
  File "/home/mkramer/git/bin/git-p4", line 108, in p4_read_pipe_lines
    return read_pipe_lines(real_cmd)
  File "/home/mkramer/git/bin/git-p4", line 101, in read_pipe_lines
    die('Command failed: %s' % c)
  File "/home/mkramer/git/bin/git-p4", line 59, in die
    raise Exception(msg)
Exception: Command failed: p4 -u mkramer -c mkramer changes //depot/...

Is this a limitation in the current --use-client-spec or --detect-branches flags, or am I doing it wrong?

-- 
View this message in context: http://git.661346.n2.nabble.com/P4-Sync-problem-tp3979793p5326585.html
Sent from the git mailing list archive at Nabble.com.
Previous: Dmitry SmirnovNext: Pete Wyckoff
Message 8 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.