[plugin] rsync-pull/rsync-push

John A Meinel john at arbash-meinel.com
Fri Jan 27 22:48:39 GMT 2006


John A Meinel wrote:
> I changed the way my rsync-pull and rsync-push plugin works.
> I realized now that bzr supports sftp, I can just translate the sftp
> path into a valid path for rsync.
> 
> So I no longer need the '.bzr/x-rsync-data' file, I just go off of what
> your .bzr/parent location is. It fails if it isn't an http path.
> 
> I realize that I could probably also grab the push-location, as a
> separate thing from the pull location. But for right now, I always use
> the same target (if I'm doing an rsync pull).
> 
> The plugin is at:
> 
> http://bzr.arbash-meinel.com/plugins/bzr-rsync/
> 
> John
> =:->
> 

Just to follow up, I decided that using push-location really was better
(but if push_location isn't set, I will use parent so that once you have
'pulled' you don't have to specify a push target).

Also, I added the command 'rbranch' so that you can get new branches.

And finally, I now lock the remote branch. Because I don't want someone
to modify it while I am in progress, since rsync doesn't get files in
the proper order to ensure consistency.

So for sftp branches, my bzr-rsync plugin provides rpush/rpull/rbranch
which should behave just like their non-'r' commands, only using rsync
to do all of the actual copying.

It does use a separate ssh connection, so if you have to type your
password, you would have to type it 2 times. But the bzrtools 'push'
does that anyway.

I also should handle the rsync return codes that bzrtools handles, since
it does a little bit better at understanding what rsync is telling it.

(And I could probably turn off --verbose by default, but I like it for now).

I know at least one person is using my rsync plugin for handling
.rsyncinclude, but I don't remember who. So I wanted to warn them that
the plugin is changing a little bit.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060127/c8d7096a/attachment.pgp 


More information about the bazaar mailing list