[Top][All Lists]

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

Re: [Monotone-devel] [PATCH] _MTN/log pre-specified magic line quickie

From: Ben Walton
Subject: Re: [Monotone-devel] [PATCH] _MTN/log pre-specified magic line quickie
Date: Mon, 18 Dec 2006 12:02:12 -0500

It sounds like an interesting piece to write, and if nobody else is
working on such a feature, I might take a poke at it.  It'll be a good
exercise to acquaint myself more with the roster and workspace code, I

I think that such a feature should collect the unknown files prior to
applying the patch and then compare the unknown list after, taking the
non-overlapping portion of the two as files that were added.  This
could leave pre-existing unknown files as they were.


On 12/18/06, Thomas Keller <address@hidden> wrote:
Ben Walton schrieb:
> Well, there's something to think about.  What about a mtn do_patch or
> something similar that takes a .diff/.patch and applies it, adding
> unknown files afterwards?
> The problem I see with that is that you may add other files
> inadvertently if you had already introduced new files...?
> Might be worth some thought though, as patch -p1 < somepatch.diff is a
> fairly common thing in a distributed project...

I think there was some discussion recently to finally teach monotone to
read its own diffs it outputs, but this seems not to be a straight
forward task. Others may be more specific on this topic, but in general
I'd second such a request =)


ICQ: 85945241 | SIP: 1-747-027-0392 |
> Guitone, a frontend for monotone:
> Music lyrics and more:

Ben Walton <address@hidden>

Unanswered questions are far less dangerous than unquestioned answers.
- The Roadside Pulpit

reply via email to

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