git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Riesen <raa.lkml@gmail.com>
To: Sam Vilain <sam@vilain.net>
Cc: Jakub Narebski <jnareb@gmail.com>,
	Arnaud Bailly <abailly@oqube.com>,
	git@vger.kernel.org
Subject: Re: From P4 to Git
Date: Mon, 3 Aug 2009 15:50:14 +0200	[thread overview]
Message-ID: <81b0412b0908030650oc39f4a3s7c059e300b65addb@mail.gmail.com> (raw)
In-Reply-To: <1249299010.7164.8.camel@maia.lan>

On Mon, Aug 3, 2009 at 13:30, Sam Vilain<sam@vilain.net> wrote:
> On Mon, 2009-08-03 at 10:47 +0200, Alex Riesen wrote:
>> Is it an import-once tool, or can the process be restarted? (because it looks
>> like the script needs a complicated setup).
>
> It's fully restartable.  Not only that but it uses transaction
> protection to make sure that its internal state doesn't get corrupted
> when performing the various options.

"varios options"? Operations? As when working on a live server?
Aren't P4 changelist numbers always increasing? Or you mean
the protection against multiple running instances of p4raw,
so it is also parallelizable?

>> Can it be used from a client machine?
>>  And more importantly:
>> can the branches be found from incomplete history,
>> restricted by path and changelist range? (because, in a corporate
>> setup, clients seldom have full access to all data).
>
> No, it's server only. ...

Darn. I hoped it wasn't. Can't play with it, then.

> ... I think I did get around to implementing not having
> to go through all the stages for branches you didn't care to import.  It's
> difficult though, the stage which correlates those thousands of 'integrate'
> records is never going to be fast.

Maybe if it is done locally, it can be improved? You seem to use the
Postgre for lookups, right?

> Be prepared to tune your postgres - add lots of shared_buffers and
> sort memory if your project is as large as Perl.

Mine isn't, but it is thrown on a server with a lot of others. Some branched
off mine, some integrate it, some just copied and re-introduced into repository
(these will probably worked with manually forever). There is also a small
problem of different P4 servers, hosting code from the same project (they
pull different repos together on client, imagine that!)

And all of them go back for 5-6 years, so it is kind of largish (not to mention
a mess of binaries).

Some branches I hope to merge back. I do that already, but it is a lot of
manual work (I use that git-p4-import.bat I posted early, which only can
import a sequence of changelists with files they touch).

That's were I hoped your project could help. I thought, if I pull in all the
needed changelists (selected by path/CL), there may be a way to
recreate a mergeable history out of this dump. At least, one involving less
labor then I have to do now.

  reply	other threads:[~2009-08-03 13:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-28 20:14 From P4 to Git Arnaud Bailly
2009-07-28 20:32 ` david
2009-07-28 21:10 ` Jakub Narebski
     [not found]   ` <85r5vxbd8e.fsf@oqube.com>
2009-07-31  9:22     ` Jakub Narebski
2009-07-31 11:14       ` Alex Riesen
2009-08-03  7:49         ` Sam Vilain
2009-08-03  8:47           ` Alex Riesen
2009-08-03 11:30             ` Sam Vilain
2009-08-03 13:50               ` Alex Riesen [this message]
2009-08-03 20:32                 ` Sam Vilain
2009-08-03 21:51                   ` Alex Riesen
2009-08-04  0:29                     ` Sam Vilain
2009-08-02  7:16       ` Sam Vilain
2009-08-04 12:31       ` Arnaud Bailly
2009-08-04 12:35         ` Peter Baumann
2009-08-03 21:37   ` John Tapsell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81b0412b0908030650oc39f4a3s7c059e300b65addb@mail.gmail.com \
    --to=raa.lkml@gmail.com \
    --cc=abailly@oqube.com \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    --cc=sam@vilain.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).