P4 migration help

Massimo Del Zotto massimodz8 at gmail.com
Fri Feb 3 11:17:25 UTC 2012


Hello hg users.
I am trying to migrate away from P4 after a couple of years using it for
personal use. It took me a while to read the migration documentation using
the convert pluging. I'm afraid I don't really understand what's going on.
Perhaps I am confused by the different terminology or perhaps I'm messing
up things but it appears my conversion does not happen.

I searched to archives with little luck, this message has needs similar to
mine:
http://mercurial.808500.n3.nabble.com/perforce-import-tt3089685.html

In particular I need:
1- Get all the files from the P4 depot (I could do that by using P4V) but...
2- I want to keep all changelists (P4 terminology) / commits

I tried some hg convert calls with various settings on both the checked out
files and the P4 depot itself as it appears convert can work on it. Both
approaches failed with similar results. I'm out of ideas. I need help.
I have found a message citing using 32-bit machines. I am running Win7 x64
and I'm afraid I have little access to 32-bit machines right now (I could
arrange something if necessary, but I'd rather avoid that).

My last try:
------------------------------------
HOME>hg convert -s p4 "p4_depot\..." "HOME\hg_depot_MYPROJECT"
initializing destination HOME\hg_depot_AREN repos
itory
reading p4 views
C:\Program Files\TortoiseHg\library.zip\hgext\convert\p4.py:76:
RuntimeWarning:
tp_compare didn't return -1 or -2 for exception
** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit
(AMD64)]
** Mercurial Distributed SCM (version 2.0.2)
** Extensions loaded: convert
Traceback (most recent call last):
  File "hg", line 42, in <module>
  File "mercurial\dispatch.pyo", line 27, in run
  File "mercurial\dispatch.pyo", line 64, in dispatch
  File "mercurial\dispatch.pyo", line 87, in _runcatch
  File "mercurial\dispatch.pyo", line 684, in _dispatch
  File "mercurial\dispatch.pyo", line 466, in runcommand
  File "mercurial\dispatch.pyo", line 738, in _runcommand
  File "mercurial\dispatch.pyo", line 692, in checkargs
  File "mercurial\dispatch.pyo", line 681, in <lambda>
  File "mercurial\util.pyo", line 458, in check
  File "hgext\convert\__init__.pyo", line 269, in convert
  File "hgext\convert\convcmd.pyo", line 419, in convert
  File "hgext\convert\convcmd.pyo", line 56, in convertsource
  File "hgext\convert\p4.pyo", line 52, in __init__
  File "hgext\convert\p4.pyo", line 76, in _parse
EOFError: EOF read where object expected

HOME>
------------------------------------

Although the output specifically refers to a bug, I am unsure I should
signal that as such. It appears to me I must be missing something.

Can you please help me understanding what I am doing wrong?

Massimo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120203/b3763709/attachment-0002.html>


More information about the Mercurial mailing list