/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: 2016-02-13 13:20:44 UTC
  • Revision ID: tim@ed.am-20160213132044-t5zaxhdlhjyn4t1v
moved handling of --verbose to main program; manuall parse config file (because
ConfigFileParse does not support allow_no_value in python 2.6)

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
73
71
                        elif opt == "--help":
74
72
                                self.print_help()
75
 
                
 
73
 
76
74
                # discard first argument (the command)
77
75
                args.pop( 0 )
78
76
 
104
102
                if the.repo.vcs.has_changes():
105
103
                        raise the.program.FatalError(
106
104
                                'repo has local changes: %s\n'
107
 
                                'Hint: see "%s stage-revert --help"' % 
 
105
                                'Hint: see "%s stage-revert --help"' %
108
106
                                ( the.repo.name, the.program.name ) )
109
107
 
110
108
                # check status