Closed Bug 1391394 Opened 7 years ago Closed 7 years ago

Add sparse checkout support to robustcheckout

Categories

(Developer Services :: Mercurial: robustcheckout, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gps, Assigned: gps)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Mercurial 4.3 supports sparse checkouts (working directories only containing a subset of files). Use of sparse checkouts will allow us to not have to realize a few hundred thousand files for many CI tasks. This will effectively enable us to use checkouts in tasks where that was performance prohibitive before.
Comment on attachment 8900070 [details] robustcheckout: support sparse profiles (bug 1391394); https://reviewboard.mozilla.org/r/171414/#review176606 ::: hgext/robustcheckout/__init__.py:546 (Diff revision 1) > > + # Mercurial 4.3 doesn't purge files outside the sparse checkout. > + # See https://bz.mercurial-scm.org/show_bug.cgi?id=5626. Force > + # purging by monkeypatching the sparse matcher. > + try: > + oldsparsefn = getattr(repo.dirstate, '_sparsematchfn', None) nit: old_sparse_fn is much easier to read.
Attachment #8900070 - Flags: review?(glob) → review+
Attachment #8900069 - Flags: review?(glob) → review+
Pushed by gszorc@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/e5c5809605e7 robustcheckout: support sparse profiles ; r=glob
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Pushed by gszorc@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/0451f128550d robustcheckout: tweak log message to reflect reality
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: