[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Packet I/O howto
From: |
Nathaniel Smith |
Subject: |
Re: [Monotone-devel] Packet I/O howto |
Date: |
Fri, 21 Apr 2006 21:46:53 -0700 |
User-agent: |
Mutt/1.5.11 |
On Fri, Apr 21, 2006 at 11:01:56PM -0300, Jeronimo Pellegrini wrote:
> I have been playing with packet I/O, and found that the documentation
> gives commands for packet transfering, it doesn't say what exactly (and
> in what order) I should do to transfer revisions between databases. I
> found out, and thought I'd write this mini-howto for Monotone 0.26. I
> hope it's useful.
Thanks! Would you be interested in adapting this to go in the manual?
> Also, if I may add something to the wishlist... Maybe it would be nice
> to have one single command for getting all packets from one revision?
> Something like:
>
> mtn automate packets_for_revision ID
Seems useful. Should it include certs or not? (For mtn-dumb's use,
it should not, because mtn-dumb wants to get certs separately. But it
would definitely make the get-files-and-revision stuff simpler.)
> $ mtn -d A automate graph|awk '{print $1;}'|xargs -- mtn -d A automate
> toposort
$ mtn -d A automate select i: | mtn -d A automate toposort address@hidden
(Simpler, plus more reliable -- if there are enough revisions, xargs
may decide to run its command multiple times (because of OS command
line length limits), which would give incorrect results in the case of
toposort; the brain-onna-stick switch has no such limits.)
-- Nathaniel
--
"But in Middle-earth, the distinct accusative case disappeared from
the speech of the Noldor (such things happen when you are busy
fighting Orcs, Balrogs, and Dragons)."