Closed Bug 1414904 Opened 7 years ago Closed 7 years ago

Update robustcheckout to work with Mercurial 4.4

Categories

(Developer Services :: Mercurial: robustcheckout, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gps, Assigned: sheehan)

References

Details

Attachments

(1 file)

Let's get robustcheckout and its test suite working full with Mercurial 4.4. This blocks upgrading CI to 4.4.
Assignee: gps → sheehan
Comment on attachment 8935822 [details] robustcheckout: Make robustcheckout compatible with Mercurial 4.4 (Bug 1414904) https://reviewboard.mozilla.org/r/206690/#review212462 This looks pretty good! Just a minor change to the version checking code. Did you run the test harness with `./run-tests --all-hg-version -j8 hgext/robustcheckout`? ::: hgext/robustcheckout/__init__.py:225 (Diff revision 1) > # profiles on 4.3. When 4.4 is released, we'll need to opt in to sparse > # support. We /could/ silently fall back to non-sparse when not supported. > # However, given that sparse has performance implications, we want to fail > # fast if we can't satisfy the desired checkout request. > if sparseprofile: > - if util.versiontuple(n=2) != (4, 3): > + if util.versiontuple(n=2) < (4, 3): We still want this to be an explicit allow list because the feature is still experimental in Mercurial and we don't want people accidentally using the extension with e.g. Mercurial 4.5 until we validate it works. So this should be something like: `if util.versiontuple(n=2) not in ((4, 3), (4, 4)):`
Attachment #8935822 - Flags: review?(gps) → review-
Comment on attachment 8935822 [details] robustcheckout: Make robustcheckout compatible with Mercurial 4.4 (Bug 1414904) https://reviewboard.mozilla.org/r/206690/#review212462 Yes, the tests pass for all Mercurial versions. :)
Comment on attachment 8935822 [details] robustcheckout: Make robustcheckout compatible with Mercurial 4.4 (Bug 1414904) https://reviewboard.mozilla.org/r/206690/#review212582 Nice! This unblocks us from rolling out Mercurial 4.4 in CI!
Attachment #8935822 - Flags: review?(gps) → review+
Pushed by gszorc@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/4a274fa605f1 robustcheckout: Make robustcheckout compatible with Mercurial 4.4 r=gps
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Blocks: 1424386
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: