monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Perl Script to export packets for a certain revisio


From: Timothy Brownawell
Subject: Re: [Monotone-devel] Perl Script to export packets for a certain revision
Date: Mon, 07 Nov 2005 20:30:09 -0600

On Tue, 2005-11-08 at 00:16 +0100, Tom Koelman wrote:
> Hi,
> 
> I wanted to transfer revisions per e-mail. I found a tcl script by
> Clemens Hintze but I couldn't get it to work. Then I read a mailing
> list post by Nathaniel[1] which described how to achieve this. The
> result is a perl script that can extract all the packets I think are
> needed to reconstruct a certain revision.
> 
> This packet-collection can be piped to a file and then sent per e-mail
> or whatever transport you like.
> 
> If you are interested, take a look at
> http://www.xs4all.nl/~tkoelman/monotone .
> 
> It's a pretty basic script, but it is very nice to be able to, for
> example, do this:
> 
> monotone automate ancestry_difference $(cat MT/revision) | xargs 
> mt-revision-packet > ancestors.packet
> monotone --db=fresh.db db init
> monotone --db=fresh.db read < my-privkey
> monotone --db=fresh.db read < ancestors.packet

Hmm, neat. There should be a way to specify the db to use, so it doesn't
have to be run from inside a workspace.

Here's something to go with it, that gets the packets for all revisions
in a set of branches that weren't there the last time it was run. It can
also update it's list of what the other side has from packet files that
they send. (ie, should more-or-less emulate push and pull over
sneakernet/email)

Tim

Attachment: sneakersync
Description: application/shellscript


reply via email to

[Prev in Thread] Current Thread [Next in Thread]