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

  • Committer: Tim Marston
  • Date: 2014-04-18 14:37:11 UTC
  • Revision ID: tim@ed.am-20140418143711-0cwh7hm1w53w4k8q
made checks for verbose >= 1 explicit

Show diffs side-by-side

added added

removed removed

69
69
                # URL argument
70
70
                self.url = args[ 0 ].strip() if len( args ) else None
71
71
 
72
 
                # remaining arguments
 
72
                # check remaining arguments
73
73
                if len( args ) > 1:
74
74
                        raise the.program.UsageError( 'too many arguments' )
75
75
 
96
96
                        deployment.copy_in()
97
97
 
98
98
                        # perform bzr checkout
99
 
                        if the.verbose: print "checking out %s" % the.repo.dir
 
99
                        if the.verbose >= 1: print "checking out %s" % the.repo.dir
100
100
                        try:
101
101
                                the.repo.vcs.checkout( self.url )
102
102
                        except Exception as e:
118
118
                else:
119
119
 
120
120
                        # perform bzr init
121
 
                        if the.verbose: print 'initialising %s' % the.repo.dir
 
121
                        if the.verbose >= 1: print 'initialising %s' % the.repo.dir
122
122
                        try:
123
123
                                the.repo.vcs.init()
124
124
                        except Exception as e: