monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Monotone diff


From: Matthew A. Nicholson
Subject: Re: [Monotone-devel] Monotone diff
Date: Tue, 23 Nov 2004 20:01:50 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041119)

Nathaniel Smith wrote:
On Tue, Nov 23, 2004 at 01:54:15PM -0600, Matthew A. Nicholson wrote:

Is there a way to diff my current branch aganist another branch like say I
wanted to do (except this does not work...):

monotone --db=my.db --branch=net.venge.monotone.ssh co .
monotone --db=my.db --branch=net.venge.monotone.changesets diff

So how would I see the differences between the ssh branch and the changesets
branch?


If the working directory is a checkout of .ssh, you can do:
$ monotone --branch=net.venge.monotone.changesets heads
<prints some ids and metadata>
$ monotone diff <id printed above>

If you don't have a working directory at all, you can do:
$ monotone --db=my.db --branch=net.venge.monotone.ssh heads
<prints some ids and metadata>
$ monotone --db=my.db --branch=net.venge.monotone.changesets heads
<prints some ids and metadata>
$ monotone diff <id from first command> <id from second command>

This would be nicer if there was a "head" selector, used like
h:net.venge.monotone.changesets... we have a "branch" selector
already, be pretty similar...

-- Nathaniel


Ok thanks, this is great. I am thinking like a cvs head... I keep forgetting about selectors.

--
Matthew A. Nicholson
Matt-land.com




reply via email to

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