~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to push.py

  • Committer: Aaron Bentley
  • Date: 2005-10-17 20:17:15 UTC
  • Revision ID: abentley@panoramicfeedback.com-20051017201715-3df1dee62e126f22
Improved push help

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