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

  • Committer: Tim Marston
  • Date: 2016-02-23 22:37:03 UTC
  • Revision ID: tim@ed.am-20160223223703-sx94svvstwt8xvrb
determine and instantiate repo vcs dynamically; for new repos, added default vcs
configuration option and allow override in init command arguments; re-added
handling of -v/--verbose arguments to commands and removed from program (since
there may be problems parsing all arguments here)

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
                        'rm': 'remove',
118
118
                        'st': 'status',
119
119
                        'co': 'init',
120
 
                        'ci': 'add',
121
120
                }.get( command, False )
122
121
                if alias: return alias
123
122
 
208
207
                try:
209
208
                        instance.run()
210
209
                except Vcs.VcsError as e:
211
 
                        message = e.msg.rstrip() + '\n\nVCS OUTPUT:\n' + e.output.rstrip()
 
210
                        message = e.msg.rstrip()
 
211
                        if the.verbose >= 1:
 
212
                                message += '\n\nOUTPUT:\n' + e.output.rstrip()
212
213
                        self.die( message )
213
214
                except self.FatalError as e:
214
215
                        self.die( e.msg )