~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2005-10-31 05:45:24 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20051031054524-292328b623bd775c
0.6.1 release

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
 
    >>> br.working_tree().add(["foo"])
 
46
    >>> bzrlib.add.smart_add_branch(br, [br.base])
 
47
    1
47
48
    >>> is_clean(br)
48
49
    (False, [])
49
 
    >>> br.working_tree().commit("added file")
 
50
    >>> br.commit("added file")
50
51
    >>> is_clean(br)
51
52
    (True, [])
52
53
    >>> rm_branch(br)
254
255
        push_location = location
255
256
    
256
257
    if push_location is None:
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
 
258
        print "No push location saved.  Please specify one on the command line."
 
259
        sys.exit(1)
264
260
 
265
261
    clean, non_source = is_clean(cur_branch)
266
262
    if not clean: