-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Right now, ambiguous artifact IDs are handled by showing a page
listing all (*) the artifacts with the prefix.

I suggest jumping straight to the oldest artifact with the prefix, but
showing the alternatives on the page.  Perhaps it would be easier to
simply show a warning that there is ambiguity, and link to a
disambiguation page like Fossil currently has.

At the time an abbreviated artifact ID is generated (e.g. when making
timeline HTML, from which the user may copy into a checkin comment),
it's unambiguous.  I should hope.  Later checkins and other activity
may collide with those old abbreviations, but we can safely
disambiguate by assuming the oldest is what was intended, since again
it was unambiguous at the time it was generated.

As for the other possible cause of ambiguity (the user shortening the
artifact ID without checking for ambiguity), that's (maybe?) a rarer
case but is still handled via the alternatives list.

What does "oldest" mean?  To be accurate, it would have to ignore date
overrides and instead look at when the artifact was actually entered
into the database, rather than where it shows up on the timeline.

I'm making the assumption that every time an abbreviated artifact ID
is displayed in any form, the code first checks if it's ambiguous or
not, then picks a longer form if needed, adding a certain number of
digits each time it's not unique.

(*) Is this really true of all types?  I seem to remember there being
some artificial partitioning and differences in handling various
artifact types.

- -- 
Andy Goth | <andrew.m.goth/at/gmail/dot/com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJToLEKAAoJELtYwrrr47Y42NsIANJEoFhHtqpH4RwiEyCidmKn
G2v7IeD/OzwamA0PhExy1NtyvPJ0hoNrRgm73UAJKKPLkNj3EXb0jD0jkPiBLa0I
SRyOA+kVuysloSfvUXCN9emhxjmEPinPiOD1+9KcAKXzkRTsSBp0OGI9Hx4Inb0i
4ElDiG5hqRWu1jtuvaESeHL/E4RtpsWgj+iCrSX/KjfeaRmjvGgVCzJlASmRthe9
AQ9G83rHZh4uiCQpD0vbDt4FSDSGZs+zK40pqet7UAWw3VCOSs1gZ6KPAW7tMoQi
akMKdDb0Z1YxeBV1lLGEPbvj6cMLADGLgX3w0DujQP2x6ZKiB8OEIx9sphSfSDo=
=cyuB
-----END PGP SIGNATURE-----
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to