/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/command/revert.py

  • Committer: Tim Marston
  • Date: 2014-07-30 19:08:15 UTC
  • Revision ID: tim@ed.am-20140730190815-f3fs5cgtwb88jbvb
added checks to not die when information is missing in deployment

Show diffs side-by-side

added added

removed removed

68
68
                                        raise the.program.FatalError(
69
69
                                                'invalid repository name: ' + optarg )
70
70
                                the.repo = optarg
 
71
                        elif opt in [ '--verbose', '-v' ]:
 
72
                                the.verbose += 1
71
73
                        elif opt == "--help":
72
74
                                self.print_help()
73
 
 
 
75
                
74
76
                # discard first argument (the command)
75
77
                args.pop( 0 )
76
78
 
102
104
                if the.repo.vcs.has_changes():
103
105
                        raise the.program.FatalError(
104
106
                                'repo has local changes: %s\n'
105
 
                                'Hint: see "%s stage-revert --help"' %
 
107
                                'Hint: see "%s stage-revert --help"' % 
106
108
                                ( the.repo.name, the.program.name ) )
107
109
 
108
110
                # check status