~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to push.py

merge from abentley

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import os
21
21
import bzrtools 
22
22
 
23
 
Option.OPTIONS['overwrite'] = Option('overwrite', help='Ignore safety checks'
24
 
                                     ' and overwrite any existing data.')
25
23
 
26
24
class cmd_push(Command):
27
25
    """Upload this branch to another location using rsync.
32
30
    directory is non-empty and not an earlier version of the branch. 
33
31
    """
34
32
    takes_args = ['location?']
35
 
    takes_options = ['overwrite']
 
33
    takes_options = [Option('overwrite', help='Ignore differences between'
 
34
                            ' branches and overwrite unconditionally')]
36
35
 
37
36
    def run(self, location=None, overwrite=False):
38
37
        cur_branch = Branch.open_containing(".")[0]