Commits

Dan Villiom Podlaski Christiansen committed 40bc07c

Fix BitBucket SSH URLs; remove dead code.

Comments (0)

Files changed (1)

hgopenurl/__init__.py

         '^https?://([-a-z0-9]+).googlecode.com/hg/?$',
         path, re.IGNORECASE)
     bb = re.match(
-        '^((ssh://(hg@))|https?://)bitbucket.org/([-a-z0-9]+)/([-a-z0-9]+)/?$',
-        path, re.IGNORECASE
-    )
-    bbssh = re.match(
-        '^ssh://(?:hg@)?bitbucket.org/([-a-z0-9]+)/([-a-z0-9]+)/?$',
+        '^((ssh://(hg@)?)|https?://)bitbucket.org/([-a-z0-9]+)/([-a-z0-9]+)/?$',
         path, re.IGNORECASE
     )
     fallbackhttp = re.match('^https?://', path)