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

Re: P4 Sync problem

From
DSDmitry Smirnov <divis1969@gmail.com>
Date
Nov 11, 2009, 14:57 UTC
Message-ID
<loom.20091111T154425-182@post.gmane.org>
In-Reply-To
<1a6be5fa0911110554u7c3a04c8hf50100b784b63c7a@mail.gmail.com>
Tor Arvid Lund <torarvid <at> gmail.com> writes:
Show 12 quoted lines
> //depot/A/...
> -//depot/A/B/...
> //depot/A/B/C/...
> 
> ... git-p4 sorts these paths by length. For a given filename, it finds
> the longest path that matches that files directory, and if that path
> starts with a '-', the file is not synced (for a file
> "//depot/A/B/myfile.c" it gets a match on "-//depot/A/B/...", and
> myfile.c is not synced, but the file "//depot/A/B/C/myotherfile.c" it
> matches "//depot/A/B/C/...")
> 
> Do you have an example that shows how it might fail?

According to the P4 User's Guide (http://www.perforce.com/perforce/doc.091/manuals/p4guide/02_config.html#1066090) Perforce prefer later mapping if there is a conflict.

So, if you switch paths: -//depot/A/B/... //depot/A/... perforce will sync all the the files. Of course, this is not a very useful case. I suppose the order is not important until mapping are implemented...

Previous: Tor Arvid LundNext: masonk
Message 7 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.