[Buildbot-devel] Behavior of mode=copy

bugs at almad.net bugs at almad.net
Mon May 12 14:25:14 UTC 2008


Hello,



I've tried to speed up mode=copy for Mercurial backend (but I think this affects most of distributed VC's): cp -rp copies also .hg with whole repository history into build, which is not needed and causes update to be *lot* slower.



Mercurial has build-in command archive, which just copies active revision to another directory, which I think is more usable for this case (and for my case speeds up update from 1 hour to 3 minutes). I've attached my patch to #263.



However, there is one problem with it: it differs from cp -rp in case when working copy is different from last revision (= uncommited changes), which is exactly what currents testsuite is testing ;)



IMHO this should be fixed (= tests are using touch and they should add add+commit), as it does not make sense to have uncommited changes in repos directory and it will help to speed up update behaviour.



I'd fix suite, but I want to discuss this first as this probably breaks backwards compatibility, through in minor way and I doubt someone needs this.



Thanks,



Almad





More information about the devel mailing list