~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2006-12-05 18:09:10 UTC
  • Revision ID: abentley@panoramicfeedback.com-20061205180910-j6peu8ady8r1lrtb
Make rspush work with rsync servers (Tridge)

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
    if push_location is None:
250
250
        raise BzrCommandError("No rspush location known or specified.")
251
251
 
 
252
    if (push_location.find('::') != -1):
 
253
        usessh=False
 
254
    else:
 
255
        usessh=True
 
256
 
252
257
    if (push_location.find('://') != -1 or
253
258
        push_location.find(':') == -1):
254
259
        raise BzrCommandError("Invalid rsync path %r." % push_location)
283
288
                " specified location.  Please ensure that"
284
289
                ' "%s" is of the form "machine:/path".' % push_location)
285
290
    print "Pushing to %s" % push_location
286
 
    rsync(tree.basedir+'/', push_location, ssh=True, 
 
291
    rsync(tree.basedir+'/', push_location, ssh=usessh, 
287
292
          excludes=final_exclusions)
288
293
 
289
294
    set_push_data(tree, push_location)