Ticket #263 (assigned enhancement)

Opened 7 months ago

Last modified 6 months ago

Use hg archive for Mercurial mode=copy

Reported by: Almad Assigned to: Almad (accepted)
Priority: major Milestone: undecided
Component: vc-support Version: 0.7.7
Keywords: Cc:

Description

On mode=copy, Buildbot is using cp -rp for copying source to build, copying whole history of repository.

Using hg archive source build would copy only tip, speeding up whole process a lot for bigger repositories.

Attachments

mercurial_copy_with_archive.diff (1.3 kB) - added by Almad on 05/12/08 06:56:48.
hg archive instead of cp -rp for mercurial backend

Change History

05/12/08 06:56:48 changed by Almad

  • attachment mercurial_copy_with_archive.diff added.

hg archive instead of cp -rp for mercurial backend

05/12/08 07:02:51 changed by Almad

  • owner set to Almad.
  • status changed from new to assigned.

I'vee attached patch that works for me in our environment.

However, this patch breaks tests for mercurial. After examining tests, I guess it's feature: hg archive copies actual repository version, while cp -rp copies working copy version - and tests are using touch to add new files to repo, not followed by add+commit.

From buildbot's perspective, I'd say that mine version makes more sense, as there is no reason to have custom files in repo.

Sending e-mail to -devel list, as this requires "architectonical" change, I guess.