help with use case

Faheem Mitha faheem at email.unc.edu
Tue Dec 20 22:49:16 UTC 2005


On Tue, 20 Dec 2005 08:41:54 +0100, Thomas Arendsen Hein
<thomas at intevation.de> wrote:

> This is a pipe. "hg tip -q" prints something like
> "1594:a329e0fda2ae", so we want to do "hg co a329e0fda2ae". The cut
> command filters the second field (-f2) with the field delimiter set
> to ":" (-d:) and the backticks (`) replace the long pipe with its
> output.

> So you could simply type "hg -R ../source -q tip", look at the
> output, and manually type "hg co a329e0fda2ae" (or hg co 1594) to
> get the same result, but you wanted an automated way :)

Oh, I see. I've never used cut, so I was confused.

Thanks for the clarification. I think I like the first way better.

                                                           Faheem.




More information about the Mercurial mailing list