monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] Usage procedure for diffing


From: Henrik Holmboe
Subject: [Monotone-devel] Usage procedure for diffing
Date: Fri, 5 Nov 2004 02:04:06 +0100

Hello list,

Ive been playing around with monontone to get used to how the commands
work compared to what Im accustomed to (Subversion in this case).

The first thing that stands out is that 'monotone diff' works exactly
like 'svn diff', but 'monotone diff FILE' doesnt diff the current FILE
to the last commited one. Instead it takes MANIFEST-IDs as arguments.

The second thing I wanted to perform was to diff a specific commited
file to the previous version. Take this scenario for example:

 1) I view the ChangeLog in net.venge.monotone.changesets and Im
    curious what was changed to netsync.cc by address@hidden on
    2004-10-30.

 2) I perform 'monotone log netsync.cc' and CTRL+c out after
    displaying the first entries. Wouldnt it be convenient to add
    something to just view a specified set of entries? grep etc would
    be an alternative, but the command takes lots of time and cpu.

 3) From there I can see that 5d542064d916fcb3a4c8f055d604f561bf57e450
    is the latest commited version and
    383a3ee91491bd853afbc59cc75dda74702b8b32 is the one before that.

 4) I run the command 'monotone diff
    383a3ee91491bd853afbc59cc75dda74702b8b32
    5d542064d916fcb3a4c8f055d604f561bf57e450 | less' to view the
    diff. Im presented with diffs for netsync.cc but also many other
    (of my interest) irrelevant files. Could this command benefit from
    a selector to view the diff of only one file?

Perhaps Im approaching this wrong. And Im sure not that familiar with
monotone to recommend how to solve my above concerns. Please advise.

.h

-- 
Henrik Holmboe, Stockholm, Sweden
<http://henrik.holmboe.se/contact/>




reply via email to

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