darcs

Issue 103 diff --from-tag --to-tag is broken

Title diff --from-tag --to-tag is broken
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List clive, darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy
Assigned To
Topics

Created on 2006-01-19.19:38:12 by clive, last changed 2009-08-27.13:46:25 by admin.

Messages
msg394 (view) Author: clive Date: 2006-01-19.19:38:11
The following output is far from what I expected.

% darcs diff --from-tag="0.0.7E7F2" --to-tag="0.0.7E7F2-dos-ansi"
Thu Jan 19 20:45:04 SAST 2006  Clive Crous <clive@darkarts.co.za>
  tagged 0.0.7E7F2-dos-ansi
%

This was done using the repository browsable at:
http://usrsrc.org/darcsweb/darcsweb.cgi?r=slashem-dos-ansi;a=summary
and actual repository at:
http://usrsrc.org/darcs/slashem-dos-ansi/
msg395 (view) Author: tommy Date: 2006-01-19.20:44:13
On Thu, Jan 19, 2006 at 07:38:13PM +0000, Clive Crous wrote:
> 
> New submission from Clive Crous <clive@darkarts.co.za>:
> 
> The following output is far from what I expected.
> 
> % darcs diff --from-tag="0.0.7E7F2" --to-tag="0.0.7E7F2-dos-ansi"
> Thu Jan 19 20:45:04 SAST 2006  Clive Crous <clive@darkarts.co.za>
>   tagged 0.0.7E7F2-dos-ansi
> %

Unfortunately for you the output is exactly what you should
expect.  ;^)

The problem is that --to/from-tag take regular expressions and
pick the last matching patch.  In this case the from-tag regex
matches the same tag as the to-tag regex.  Use a $ sign at
the end of the from-tag regex to match the "first" 7E7F2 tag.
msg402 (view) Author: clive Date: 2006-01-20.06:19:32
my appologies, damn, I work with darcs daily and *know* those are regex, I don't
know what possessed me.

It works 100% as it _should_
History
Date User Action Args
2006-01-19 19:38:12clivecreate
2006-01-19 20:44:13tommysetstatus: unread -> unknown
nosy: droundy, tommy, clive
messages: + msg395
2006-01-20 06:19:34clivesetstatus: unknown -> resolved
nosy: droundy, tommy, clive
messages: + msg402
2009-08-06 17:40:35adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, kowey, beschmi, thorkilnaur, - droundy, clive
2009-08-06 20:48:09adminsetnosy: - beschmi
2009-08-10 21:47:52adminsetnosy: + clive, - markstos, darcs-devel, zooko, jast, dagit, Serware, mornfall
2009-08-25 17:54:06adminsetnosy: + darcs-devel, - simon
2009-08-27 13:46:25adminsetnosy: tommy, kowey, darcs-devel, clive, thorkilnaur, dmitry.kurochkin