1. Peter Hosey
  2. BitbucketExtension

Commits

Peter Hosey  committed 8b8a2a0

Removed unused code spotted by jespern.

  • Participants
  • Parent commits 2ef27d8
  • Branches default

Comments (0)

Files changed (1)

File bitbucketrepo/__init__.py

View file
-import re
 import mercurial
 import bbrepo, bbsshrepo
 
-bb_url_exp = re.compile('(?P<scheme>bb(\\+ssh)?):(//)?(?P<username>.+)/(?P<reponame>.+)', re.IGNORECASE)
-
-def instance(ui, path, create):
-	import sys
-	print >>sys.stderr, 'OI'
-	return None
-	match = bb_url_exp.match(bb_url)
-	if not match: raise RepoError
-
-	scheme, username, reponame = match.groupdict()
-
-	if scheme == 'bb':
-		return BitbucketRepository(ui, username, reponame, create)
-	elif scheme == 'bb+ssh':
-		return BitbucketSSHRepository(ui, username, reponame, create)
-	else:
-		raise RepoError
-
 mercurial.hg.schemes['bb'] = bbrepo
 mercurial.hg.schemes['bb+ssh'] = bbsshrepo