monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Re: Keyword substitution?


From: Hendrik Boom
Subject: Re: [Monotone-devel] Re: Keyword substitution?
Date: Wed, 3 Aug 2005 18:44:36 -0400
User-agent: Mutt/1.5.9i

On Wed, Aug 03, 2005 at 10:10:14AM +0100, Bruce Stephens wrote:
> "Todd A. Jacobs" <address@hidden> writes:
> 
> > On Tue, Aug 02, 2005 at 06:55:42PM +0100, Bruce Stephens wrote:
> 
> [...]
> 
> >>I suspect it's just as likely that you'd have some file (a script or
> >>bit of config or something) that came from some revision but had
> >>(possibly) been changed a little.  You'd want to know where it came
> >>from to know how it had been changed, and perhaps how it had been
> >>revised in the repository.  And in that case searching for its hash
> >>would likely be a waste of time, because it's probably been changed.
> >>Having a keyword of some kind might help, in that case.
> >
> > Yes, that's exactly it. :) And of course, in a widely-distributed
> > monotone group, some people may or may not be tracking various
> > branches so being able to tell which repository a particular file
> > came from would be helpful, too.
> 
> OK, that sounds like a use case: you want to be able to export a
> revision of files, and later (perhaps after they've been changed),
> discover where they came from.  
> 
> (You aren't alone.  At work we have occasion to do that kind of thing.
> Most of our code is binary, but there's a fair amount of scripting,
> and occasionally we've suggested customers patch the scripts and maybe
> just "oh, try this one" from a later version.  I don't think we've
> ever lost track to the extent that we need to look at the CVS
> keywords, but I can imagine it happening.)

One hack might be to take the ecternally modified file, diff it
arainst all the revisions in the database, and see which ones
differ the least.

Then use judgement.

-- hendrik





reply via email to

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