Commits

Patrick Mézard  committed cec7524

remotebranches: handle hg-2.3 peers API

Peers classes were introduced by 1ac628cd7113.

  • Participants
  • Parent commits a802055

Comments (0)

Files changed (1)

File hg_remotebranches.py

                     if remote.local():
                         uri = os.path.realpath(uri)
                         rpath = getattr(remote, 'root', None)
+                        if rpath is None:
+                            # Maybe a localpeer? (hg@1ac628cd7113, 2.3)
+                            rpath = getattr(getattr(remote, '_repo', None),
+                                            'root', None)
                     else:
                         rpath = remote._url
                         if uri.startswith('http'):