/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/resolve.py

  • Committer: Tim Marston
  • Date: 2014-04-04 22:33:09 UTC
  • Revision ID: tim@ed.am-20140404223309-macifjzkiryg982n
read ~/.stdhomerc; commands set repo before run(); program performs late
initialisation of some variables; updated help

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
                                        raise the.program.FatalError(
61
61
                                                'invalid repository name: ' + optarg )
62
62
                                the.repo = optarg
 
63
                        elif opt in [ '--verbose', '-v' ]:
 
64
                                the.verbose += 1
63
65
                        elif opt == "--help":
64
66
                                self.print_help()
65
 
 
 
67
                
66
68
                # discard first argument (the command)
67
69
                args.pop( 0 )
68
70
 
103
105
                deployment.copy_out()
104
106
 
105
107
                # now we've copied-out, revert any copied-in changes!
106
 
                if the.verbose >= 1: print "reverting %s" % the.repo.dir
 
108
                if the.verbose: print "reverting %s" % the.repo.dir
107
109
                the.repo.vcs.revert()