perforce gateway

Steve Borho steve at borho.org
Fri Dec 18 11:09:57 CST 2009


On Thu, Dec 17, 2009 at 7:46 PM, Frank A. Kingswood
<frank at kingswood-consulting.co.uk> wrote:
> Steve Borho wrote:
>>
>> Incremental conversions are currently unnecessarily expensive.  It's
>> searching the p4 revision history from the beginning, perhaps finding
>> a couple new revisions, then adding just those new revisions.  On a
>> moderately loaded server this is like 15 minutes of searching history
>> and 15 seconds of retrieving new changelists.
>>
>> Could it start the search at the last known converted revision?
>>
>
> Yes it can. I'm doing this by parsing the log --debug for the p4 changelist
> number and setting it as the first revision to convert from.

For the life of me, I can't figure out where this is happening.  I was
going to, err, borrow it.

> But I think the conversion source does not have access to any of the sink's
> data so it can not go look for the information there itself.
>
> But I could be wrong, someone with more experience with the convert
> extension may know.

Work has begun on the extension.  I've decided to call it p4export,
since we are not committing any changes to Perforce directly from the
extension, 'export' is a better term for what it does.

http://bitbucket.org/sborho/p4export/

--
Steve Borho


More information about the Mercurial mailing list