darcs

Issue 1917 tag matches should prefer exact matches

Title tag matches should prefer exact matches
Priority feature Status wont-fix
Milestone Resolved in
Superseder Nosy List dmitry.kurochkin, juhp
Assigned To
Topics Matchers, UI

Created on 2010-08-14.11:37:23 by juhp, last changed 2010-08-15.21:32:11 by kowey.

Messages
msg12163 (view) Author: juhp Date: 2010-08-14.11:37:22
I was getting quite confused by

 darcs diff --from-tag foo-0.1 --to-tag foo-0.2

showing changes after tag foo-0.2, because of a later tag foo-0.2.1.

It seems preferring exact tag matches would be less surprising behaviour.

A workaround is "darcs diff --from-tag=foo-0.1$ --to-tag=foo-0.2$".
msg12207 (view) Author: kowey Date: 2010-08-15.21:32:09
Thinking about this a bit more, it seems like we should keep things as
they are because

* matching regexes on tag names allows for idioms like "darcs changes
--from-tag ."
* it does not guarantee uniqueness, because as you observed on IRC, tags
do not have to have unique names (imagine the case of merging two
repos)... but it would *appear* to be unique *most* of the time, which
could mislead people
* keeping the behaviour as uniform and exception-free as possible keeps
Darcs friendly and learnable
* it also lets us say things like "a tag is just a patch with a special
name"

If you feel this needs discussion, please open a thread on darcs-users
(that's where we do all our thinking; the BTS is just a place to note
down where things are)

Thanks for the report in the meantime and hope discovering Darcs is a
pleasant experience. :-)
History
Date User Action Args
2010-08-14 11:37:23juhpcreate
2010-08-15 21:32:11koweysetpriority: feature
status: unknown -> wont-fix
topic: + UI, Matchers
messages: + msg12207