Georg Brandl avatar Georg Brandl committed b9f7ecd

Always use https.

Comments (0)

Files changed (1)

     [bb]
     username = your bitbucket username
     password = your bitbucket http password for http (otherwise you'll be asked)
-    default_method = the default checkout method to use (ssh, http or https)
+    default_method = the default checkout method to use (ssh or http)
 
 There is one additional configuration value that makes sense only in
 repository-specific configuration files::
 
 The forks are given by bitbucket repository names (``username/repo``).
 
-Implemented URL schemas, usable instead of ``http://bitbucket.org/...``:
+Implemented URL schemas, usable instead of ``https://bitbucket.org/...``:
 
 bb://repo
     clones your own "repo" repository, checkout via default method
         if method not in ('ssh', 'http', 'https'):
             raise util.Abort('Invalid config value for bb.default_method: %s'
                              % method)
+        if method == 'http':
+            method = 'https'
         return hg.schemes['bb+' + method].instance(ui, url, create)
 
 
                     continue
                 number = contents.count('\xff')
                 if number:
-                    ui.status('%d incoming changeset%s found in bb+http://%s\n' %
+                    ui.status('%d incoming changeset%s found in bb://%s\n' %
                               (number, number > 1 and 's' or '', name),
                               label='status.modified')
                 ui.write(contents.replace('\xff', ''), label='log.changeset')
 
 hg.schemes['bb'] = auto_bbrepo()
 hg.schemes['bb+http'] = bbrepo(
-    httprepo.instance, 'http://bitbucket.org/%(path)s')
+    httprepo.instance, 'https://%(auth)sbitbucket.org/%(path)s')
 hg.schemes['bb+https'] = bbrepo(
     httprepo.instance, 'https://%(auth)sbitbucket.org/%(path)s')
 hg.schemes['bb+ssh'] = bbrepo(
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.