Page MenuHomePhabricator

Update the arc-hg.py extension to work with mercurial 6.4
ClosedPublic

Authored by cspeckmim on Mar 31 2023, 3:17 AM.
Tags
None
Referenced Files
F13051079: D21859.id52100.diff
Fri, Apr 19, 3:21 AM
F13051078: D21859.id52099.diff
Fri, Apr 19, 3:21 AM
F13051077: D21859.id.diff
Fri, Apr 19, 3:21 AM
Unknown Object (File)
Mon, Apr 15, 8:09 PM
Unknown Object (File)
Mon, Apr 15, 2:57 PM
Unknown Object (File)
Thu, Apr 11, 4:31 AM
Unknown Object (File)
Sat, Apr 6, 10:44 PM
Unknown Object (File)
Sat, Apr 6, 8:42 PM
Subscribers

Details

Summary

Mercurial 6.4 was recently released and showing up in package managers. With
the update to 6.4 using arc land would result in an exception indicating that
expandpath function does not exist.

The ui.expandpath function was deprecated in 5.8 and now removed in 6.4. The
functionality has been moved to utils.urlutil.get_ functions (they are split
between getting pull, push, and clone paths).

This updates the script to try utils.urlutil.get_clone_path function if the
ui.expandpath function is not present.

Test Plan

I updated my latest mercurial install to 6.4 and verified with hg --version.

I created a diff in a mercurial repo and used arc land to successfully land
the revision without any exceptions.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 31 2023, 1:25 PM

I also cherry-picked this to stable, since I don't have any specific plans around when I'm going to cut the next release right now.

Thank you it’s very appreciated!