~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to push.py

  • Committer: Aaron Bentley
  • Date: 2005-10-19 19:21:14 UTC
  • mfrom: (238)
  • mto: (147.4.12)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: abentley@panoramicfeedback.com-20051019192114-c02c696ac1890191
MergedĀ fromĀ mainline

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='Unconditionally'
24
 
                                     ' overwrite existing data.')
 
23
Option.OPTIONS['overwrite'] = Option('overwrite', help='Ignore safety checks'
 
24
                                     ' and overwrite any existing data.')
25
25
 
26
26
class cmd_push(Command):
27
27
    """Upload this branch to another location using rsync.
28
28
 
29
 
    If no location is specified, the last-used location will be used.  To
30
 
    to prevent dirty trees from being uploaded, push will error out if there
31
 
    are unknown files or local changes.  It will also error out if the
32
 
    upstream directory is non-empty and not an earlier version of the
33
 
    branch.
 
29
    If no location is specified, the last-used location will be used.  To 
 
30
    prevent dirty trees from being uploaded, push will error out if there are 
 
31
    unknown files or local changes.  It will also error out if the upstream 
 
32
    directory is non-empty and not an earlier version of the branch. 
34
33
    """
35
34
    takes_args = ['location?']
36
35
    takes_options = ['overwrite']