monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Perl Script to export packets for a certain revision


From: Tom Koelman
Subject: [Monotone-devel] Perl Script to export packets for a certain revision
Date: Tue, 08 Nov 2005 00:16:11 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (windows-nt)

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

Regards,
Tom Koelman

[1] http://article.gmane.org/gmane.comp.version-control.monotone.devel/3317





reply via email to

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