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

Re: git p4 clone not processing branches properly

From
Vitor Antunes <vitor.hda@gmail.com>
Date
Jul 5, 2013, 17:56 UTC
Message-ID
<loom.20130705T195116-413@post.gmane.org>
In-Reply-To
<CAHCaCk+8EehnwMP98EX=cdoyQof=zPj65Vyd_YaADVquztOYww@mail.gmail.com>
Matthieu Brucher <matthieu.brucher <at> gmail.com> writes:
Show 32 quoted lines
> 
> Hi,
> 
> I'm trying to convert a Perforce repository to git, knowing that:
> - I use client specs to remove a bunch of folders containing binaires
> (several GiB)
> - branch mappings may not be properly set, and I can't change them
> 
> Now, the branches are layout like this:
> - Branch/Main <- master
> - Branch/Feature1
> - ...
> - Releases/2013
> - ...
> I would like to have these branches and releases branches inside by
> cloned git repository, but this doesn't work. I keep on getting each
> file with Project/Branch/Main as well as Project/Branch/Feature1 and
> all others in my master branch.
> I tried to add branchLists like this:
>         branchList = Branch/Main:Releases/2013
>         branchList = Releases/2013:Branch/Feature1
> but it doesn't change a thing with the following command:
>  git p4 clone --verbose --use-client-spec --detect-branches
> //Depot/Project <at> specificrevision
> 
> I can see that branches are detected from the Perforce server, but
> none are actually detected for this specific project:
> p4-git branches: []
> initial parents: {}
> 
> Can someone give a pointer to a tutorial or something for a complex
> case like this?
Hi Matthieu,

Could you please try using //Depot/Project<at>all instead of selecting a specific revision? Also, by using that command it means that the following depot paths must exist: //Depot/Project/Branch/Main //Depot/Project/Releases/2013 //Depot/Project/Branch/Feature1

I've never used the --use-client-spec, so I'm not sure if that will not break the branch detection code.

Cheers, Vitor

P.S. - Please keep me in CC because I'm not subscribed to the mailing list.

Previous: Matthieu BrucherNext: Matthieu Brucher
Message 2 of 12 in “Re: git p4 clone not processing branches properly”
  1. Matthieu BrucherJul 5, 2013
  2. Vitor AntunesJul 5, 2013
  3. Matthieu BrucherJul 5, 2013
  4. Vitor AntunesJul 5, 2013
  5. Matthieu BrucherJul 5, 2013
  6. Matthieu BrucherJul 8, 2013
  7. Vitor AntunesJul 8, 2013
  8. Matthieu BrucherJul 8, 2013
  9. Matthieu BrucherJul 8, 2013
  10. Vitor AntunesJul 8, 2013
  11. Matthieu BrucherJul 8, 2013
  12. Vitor AntunesJul 13, 2013

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.