# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr@gmail.com>
# Date 1624353545 -7200
#      Tue Jun 22 11:19:05 2021 +0200
# Node ID 2c4da1ec7e30f6ad4dfde9f04fffefb04274a04a
# Parent  1bdba5df46fd264f00fc005c02ce05066ba2e3c2
compat: add a compat indirection for parselist

The method moved to stringutil, so lets add some compat layer for it.

diff --git a/hggit/compat.py b/hggit/compat.py
--- a/hggit/compat.py
+++ b/hggit/compat.py
@@ -10,6 +10,12 @@
 )
 
 try:
+    # moved in 5.9
+    from mercurial.utils.stringutils import parselist
+except ImportError:
+    from mercurial.config import parselist
+
+try:
     # added in 5.9
     from mercurial.node import sha1nodeconstants
 except ImportError: