[Top][All Lists]

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

Re: [Monotone-devel] Getting a diff for the first commit in a branch?

From: Richard Levitte - VMS Whacker
Subject: Re: [Monotone-devel] Getting a diff for the first commit in a branch?
Date: Wed, 30 Mar 2005 10:55:03 +0200 (CEST)

In message <address@hidden> on Wed, 30 Mar 2005 00:04:42 -0800, Nathaniel Smith 
<address@hidden> said:

njs> Oh, I see, but you mean _after_ commit, you have a revision, and
njs> want to diff it against its ancestor, but there is none.


njs> Yeah, there isn't really a good way to do that ATM, though it's a
njs> perfectly possible thing to do.  What would be the right UI for
njs> it, I think is the question...

We could have the special revision START, or have a special option,
like --branch-start, or...

Anyway, I realised it wasn't that hard to synthesise.  I just get the
status of that revision (cat revision) and parse the output for the
change statements (patch with from = []), and use those file names and
identities to extract the correct version of each file (cat file).
The rest is just a question of formatting...


Please consider sponsoring my work on free software.
See for details.

Richard Levitte                         address@hidden

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis

reply via email to

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