~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2005-11-04 23:18:25 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20051104231825-e1c079c6f517a0ee
Cherry-picked Robert's diff and push fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
255
255
        push_location = location
256
256
    
257
257
    if push_location is None:
258
 
        print "No push location saved.  Please specify one on the command line."
259
 
        sys.exit(1)
 
258
        raise bzrlib.errors.MustUseDecorated
 
259
 
 
260
    if push_location.find('://') != -1:
 
261
        raise bzrlib.errors.MustUseDecorated
 
262
 
 
263
    if push_location.find(':') == -1:
 
264
        raise bzrlib.errors.MustUseDecorated
260
265
 
261
266
    clean, non_source = is_clean(cur_branch)
262
267
    if not clean: