[darcs-users] darcs annotate format obscures the code

Michael Conrad conradme at email.uc.edu
Sun Mar 20 20:34:53 UTC 2005


On Sunday, March 20, 2005 9:44 AM, Ivan Stankovic wrote:

> On Sun, Mar 20, 2005 at 01:58:50PM +0000, Ralph Corderoy wrote:
> > Hi Jamie,
> > > I'd rather see the numbers in the output of darcs changes. That way I
> > > can run annotate in one window and changes in another. Modification of
> > > the repo shouldn't be a problem because a) presumably this is usually
> > > being done in a private copy
> >
> > Usually isn't good enough to avoid misleading output to the user.
> >
> > > and b) any new patches will just get higher numbers.
> >
> > I don't think that's true.  They're date ordered and the date is when
> > the patch was recording, not when it was added to this repo, so
> > introducing a patch written six months ago will bump lots of numbers on
> > by one.
>
> So how about adding a patch attribute like 'date of addition to the
> repository'? This attrubute would differ from record-date only if the
> user pulled the patch from another repository. With this in place, you
> could make 'darcs changes' and 'darcs annotate' build a sorted list of
> patches and number each patch accordingly.
<snip>
> Personally, I'd love to be able to refer to a patch by a simple number
> instead of a regexp.

So, I'm getting this feeling like nobody ever read my post in
mid-february... the lack of replies had me wondering that already ;-)  I was
just going to write it up myself sometime, but I'm still short on free time.
For anyone who would like to read it:
http://www.abridgegame.org/pipermail/darcs-users/2005-February/005455.html

Basically, I think we CAN get a version number for each revision, and rather
easily, too.  It would be the perfect thing to display on an annotation.  A
person could then cross-reference the version number using "darcs query
version <x>", or we could even write them in the 'changes' output for grep
to find.

(and btw, I ALMOST had a working 'query' command- but I changed too much
stuff and broke everything and didn't have time to finish.  I could send my
first couple changes to someone if they were interested in working on it,
though.)

-Mike





More information about the darcs-users mailing list