/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-04-18 14:32:26 UTC
  • Revision ID: tim@ed.am-20140418143226-d3ih1aafs6mg9ndw
made revert require --all to act on all files

Show diffs side-by-side

added added

removed removed

Lines of Context:
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