1. David Carr
  2. hgbb


Matthew Turk  committed 6ae45d1

Adding some options to bbcreate for private and to skip cloning.

  • Participants
  • Parent commits 03f5926
  • Branches default

Comments (0)

Files changed (1)

File hgbb.py

View file
         'description': opts.get('description'),
         'language': opts.get('language'),
         'website': opts.get('website'),
+        'is_private': opts.get('private'),
     _bb_apicall(ui, 'repositories', data)
     # if this completes without exception, assume the request was successful,
     # and clone the new repo
     ui.write('repository created, cloning...\n')
+    if opts['noclone'] or opts['private']: return
     commands.clone(ui, 'bb://' + reponame)
 def bb_followers(ui, repo, **opts):
           ('o', 'outgoing', None, 'look for outgoing changesets'),
           ('f', 'full', None, 'show full incoming info'),
-         'hg bbforks [-i [-f]] [-n reponame]'),
+         'hg bbforks [-i/-o [-f]] [-n reponame]'),
          [('d', 'description', '', 'description of the new repo'),
           ('l', 'language', '', 'programming language'),
           ('w', 'website', '', 'website of the project'),
+          ('p', 'private', None, 'is this repo private?'),
+          ('n', 'noclone', None, 'skip cloning?'),
-         'hg bbcreate [-d desc] [-l lang] [-w site] reponame'),
+         'hg bbcreate [-d desc] [-l lang] [-w site] [-p] [-n] reponame'),
          [('n', 'reponame', '',