Commits

Augie Fackler committed fd8c654

Work around url.url moving to util.url in Mercurial.

Comments (0)

Files changed (1)

hg_remotebranches.py

                             try:
                                 uri = url.url(uri).authinfo()[0]
                             except AttributeError:
-                                uri = url.getauthinfo(uri)[0]
+                                try:
+                                    uri = util.url(uri).authinfo()[0]
+                                except AttributeError:
+                                    uri = url.getauthinfo(uri)[0]
                     uri = uri.rstrip('/')
                     rpath = rpath.rstrip('/')
                     if uri == rpath: