~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/convert_to_1.9.py

  • Committer: John Arbash Meinel
  • Date: 2008-11-25 17:15:26 UTC
  • mto: This revision was merged to the branch mainline in revision 3851.
  • Revision ID: john@arbash-meinel.com-20081125171526-pi2g4m1w70pkie1f
Add a bit of help text when supplying --help.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Convert a pack-0.92 repository into a 1.9 (btree) repository
 
1
#!/usr/bin/env python
 
2
"""Convert a pack-0.92 repository into a 1.9 (btree) repository.
 
3
 
 
4
This works directly on the indices, rather than using the generic conversion
 
5
logic. After conversion, it will have backed up your old indices to
 
6
.bzr/repository/indices-gi. This is significantly faster than the generic 'bzr
 
7
upgrade' but it does not work for all repository formats (only pack format
 
8
repositories are supported).
 
9
"""
2
10
 
3
11
 
4
12
steps_to_revert = []
13
21
 
14
22
def main(args):
15
23
    import optparse
16
 
    p = optparse.OptionParser()
 
24
    p = optparse.OptionParser(usage='%prog [options]\n' + __doc__)
17
25
 
18
26
    opts, args = p.parse_args(args)
19
27