~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to rspush.py

  • Committer: Aaron Bentley
  • Date: 2006-05-03 20:05:46 UTC
  • mto: This revision was merged to the branch mainline in revision 366.
  • Revision ID: abentley@panoramicfeedback.com-20060503200546-83ae584b88d70a6b
Changed rpush to rspush

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import bzrtools 
22
22
 
23
23
 
24
 
class cmd_rpush(Command):
 
24
class cmd_rspush(Command):
25
25
    """Upload this branch to another location using rsync.
26
26
 
27
27
    If no location is specified, the last-used location will be used.  To 
28
 
    prevent dirty trees from being uploaded, rpush will error out if there are 
 
28
    prevent dirty trees from being uploaded, rspush will error out if there are 
29
29
    unknown files or local changes.  It will also error out if the upstream 
30
30
    directory is non-empty and not an earlier version of the branch. 
31
31
    """
37
37
 
38
38
    def run(self, location=None, overwrite=False, no_tree=False):
39
39
        cur_branch = WorkingTree.open_containing(".")[0]
40
 
        bzrtools.rpush(cur_branch, location, overwrite=overwrite, 
 
40
        bzrtools.rspush(cur_branch, location, overwrite=overwrite, 
41
41
                      working_tree=not no_tree)