~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2005-12-03 20:42:25 UTC
  • mfrom: (147.4.25 trunk)
  • mto: (147.4.27 trunk)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: aaron.bentley@utoronto.ca-20051203204225-25678bc921de4fc1
MergeĀ fromĀ lifeless

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    >>> file(fooname, "wb").write("bar")
44
44
    >>> is_clean(br)
45
45
    (True, [u'foo'])
46
 
    >>> bzrlib.add.smart_add_branch(br, [br.base])
47
 
    1
 
46
    >>> br.working_tree().add(["foo"])
48
47
    >>> is_clean(br)
49
48
    (False, [])
50
 
    >>> br.commit("added file")
 
49
    >>> br.working_tree().commit("added file")
51
50
    >>> is_clean(br)
52
51
    (True, [])
53
52
    >>> rm_branch(br)
255
254
        push_location = location
256
255
    
257
256
    if push_location is None:
258
 
        print "No push location saved.  Please specify one on the command line."
259
 
        sys.exit(1)
 
257
        raise bzrlib.errors.MustUseDecorated
 
258
 
 
259
    if push_location.find('://') != -1:
 
260
        raise bzrlib.errors.MustUseDecorated
 
261
 
 
262
    if push_location.find(':') == -1:
 
263
        raise bzrlib.errors.MustUseDecorated
260
264
 
261
265
    clean, non_source = is_clean(cur_branch)
262
266
    if not clean: