Perforce gateway via 'hg push' and 'hg pull'

Frank A. Kingswood frank at kingswood-consulting.co.uk
Wed Dec 30 13:54:20 CST 2009


Steve Borho wrote:
>>> Do you intend to migrate copy/rename status from hg to p4 integrations?
>>>       
>> Well now, are you sending me a patch for that? To be frank, I still don't
>> really understand p4 integrate, it seems complicated. How does one get the
>> copy information from p4?
>>     
> Not p4 to hg, just hg to p4.  hg has sane rename info, but it's not
> 100% clear how to communicate a copy to perforce in a single
> changelist or if it's even possible.
>   
Is this something you can experiment with?
But if you point me at some source code that may be help as well.
> I've found that I had to decrease the size of MAXARGS to 25 in order
> to avoid some fairly bad behavior.  If the command line was too long,
> util.popen() will simply fail to execute and the run() function will
> yield zero outputs.  This was breaking a clone I was trying to do in
> very non-obvious ways (large changesets would be simply pruned to
> 1/10th of the files they should have had).
>   
The solution I implemented counts the number of results returned, and 
raises an exception if it does not match the expected value. There are 
also fixes in the keep vs don't keep modes, and two caching issues.
    http://www.kingswood-consulting.co.uk/hg/perfarce/rev/fbbb669da59c

Frank

-- 
------------------------------------------------------------------------
Frank A. Kingswood                      frank at kingswood-consulting.co.uk
Cambridge, United Kingdom                               +44-870-095 0000



More information about the Mercurial-devel mailing list