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

Re: [git-p4] Trouble importing all perforce branches into git repository

From
Ttumik <tumik@tuomisalo.com>
Date
Jun 16, 2011, 09:35 UTC
Message-ID
<1308216928289-6482333.post@n2.nabble.com>
In-Reply-To
<BANLkTikTt4vMj+iZMhGEi6JefRUkZGZ8dg@mail.gmail.com>
Thomas Berg wrote:
Show 6 quoted lines
> 
> git-p4 only uses the branch mapping for the initial commit on a
> branch. It does not attempt to detect merges after that point. After
> importing to git, merges just appear as regular commits in the
> history.
> 

Thank you for the info, that's the way it seems to be working! It's a shame if the cloning from perforce -> git can't be made succesfully keeping all the history information :(

Thomas Berg wrote:
Show 6 quoted lines
> 
> There was another script called git-p4raw for importing Perforce
> history to git, which does merge detection. It solved the problem by
> having configurable rules for what should be regarded as a merge, and
> it supported manually reviewing the decisions afterwards (iirc).
> 

Yes, I tried the git-p4raw too. Actually even several forks of it! But I wasn't able to get any of those working, as none of them could load the perforce database correctly. Maybe the perforce database has changed lately or something, as git-p4raw gave errors that it's database tables don't have as much columns as perforce's does. Tried also to change the code to add those columns but there were so many of them and in many tables so I decided it's too hard and time-consuming to start reverse-engineering them..

- tumik

-- View this message in context: http://git.661346.n2.nabble.com/git-p4-Trouble-importing-all-perforce-branches-into-git-repository-tp6383422p6482333.html Sent from the git mailing list archive at Nabble.com.

Previous: Thomas BergNext: Thomas Berg
Message 10 of 11 in “[git-p4] Trouble importing all perforce branches into git repository”
  1. Grant LimbergMay 19, 2011
  2. Pete WyckoffMay 22, 2011
  3. Grant LimbergMay 23, 2011
  4. Vitor AntunesMay 23, 2011
  5. Grant LimbergMay 23, 2011
  6. Vitor AntunesMay 23, 2011
  7. Grant LimbergMay 23, 2011
  8. tumikJun 16, 2011
  9. Thomas BergJun 16, 2011
  10. tumikJun 16, 2011
  11. Thomas BergJun 16, 2011

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.