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

Re: git-p4 question

From
Alex Riesen <raa.lkml@gmail.com>
Date
Aug 10, 2007, 08:10 UTC
Message-ID
<81b0412b0708100110w6ff90215gd5c367fb65e2ae21@mail.gmail.com>
In-Reply-To
<81b0412b0708100106m3123a504p16309b6e06cd9609@mail.gmail.com>
On 8/10/07, Alex Riesen <raa.lkml@gmail.com> wrote:
Show 10 quoted lines
> On 8/10/07, Govind Salinas <govindsalinas@gmail.com> wrote:
> > If I can just sync from p4 and then sync my binary share and THEN tell
> > git-p4 that //depot/my/product/... maps to c:\path\src\realworkhere,
> > get it to import history etc,  then I would be set.
>
> git-p4-import.bat can import a state from the client have-list,
> but it does not import the history. It can import the history
> separately, so that you can stitch it into a merge which will be
> the state imported from the client. Complicated, but I couldn't
> bring myself to figure out the history automatically.
Err, example:
Import a state from p4 client:
  git-p4-import -y -c client-name -e
Import p4 history of a path mapping:
  git-p4-import --p4-path //perforce/path \
    --local-path very-local-path \
    --p4-range '@1234,5678' \
    --start start-commit \
    --branch branch-name

The last argument (--branch) is optional, will just store the last imported commit there. start-commit will be assumed current HEAD, if omitted.

Previous: Alex RiesenNext: Govind Salinas
Message 3 of 5 in “git-p4 question”
  1. Govind SalinasAug 10, 2007
  2. Alex RiesenAug 10, 2007
  3. Alex RiesenAug 10, 2007
  4. Govind SalinasAug 10, 2007
  5. Alex RiesenAug 10, 2007

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.