~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shelve

  • Committer: Aaron Bentley
  • Date: 2013-08-20 03:02:43 UTC
  • Revision ID: aaron@aaronbentley.com-20130820030243-r8v1xfbcnd8f10p4
Fix zap command for 2.6/7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
 
3
 
import sys
4
 
import shelf
5
 
 
6
 
def main(args):
7
 
    finished = shelf.parse_args(args)
8
 
 
9
 
    if finished:
10
 
        return True
11
 
    else:
12
 
        return shelf.shelve()
13
 
 
14
 
if __name__ == '__main__':
15
 
    sys.exit(main(sys.argv) and 0 or 1)