Closed Bug 1391394 Opened 4 years ago Closed 4 years ago
Add sparse checkout support to robustcheckout
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+
Comment on attachment 8900069 [details] robustcheckout: update command help; https://reviewboard.mozilla.org/r/171412/#review176622
Attachment #8900069 - Flags: review?(glob) → review+
Pushed by email@example.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/e5c5809605e7 robustcheckout: support sparse profiles ; r=glob
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Pushed by firstname.lastname@example.org: 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.