~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/make-dummy-hosted-branches

  • Committer: jml at canonical
  • Date: 2007-10-15 23:01:30 UTC
  • mto: This revision was merged to the branch mainline in revision 5017.
  • Revision ID: jml@canonical.com-20071015230130-ttzrt47655747pye
Add docstrings and remove unnecessary sys.exit() call.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python2.4
2
2
# Copyright 2007 Canonical Ltd.  All rights reserved.
3
3
 
 
4
"""Create dummy Bazaar branches for all HOSTED branches in the database.
 
5
 
 
6
The Launchpad sample data includes a number of HOSTED branches that users can
 
7
branch from, push to and view on the website. However, some of these things
 
8
will break if we are missing the actual Bazaar branches, so we have a script
 
9
to create them.
 
10
 
 
11
NOTE: This script will delete any existing sample data branches, so that the
 
12
sample data on the filesystem is consistent with the sample data in the
 
13
database.
 
14
"""
 
15
 
4
16
import _pythonpath
5
17
 
6
18
import os
39
51
 
40
52
 
41
53
if __name__ == '__main__':
42
 
    sys.exit(main(sys.argv))
 
54
    main(sys.argv)