On Sun, Oct 16, 2011 at 4:01 PM, Matt Welland <[email protected]> wrote:
> As far as I can tell if a tag is moved (added to another commit and deleted > from the old commit) there is no easily accessible history kept as to where > it pointed to in the past, is that correct? I couldn't see any option for > getting the history of a tag in the ui. > Fossil preserves the complete history, but, as you observe, not in an easily accessible form. It could hold this information in a more easily accessible form, and make available reports on the history of a tag, but we never done so before because nobody has every needed that functionality before. Some limited history is displayed. For example in http://www.fossil-scm.org/fossil/info/00fe2606 you can see that the "closed" tag was removed from the check-in by artifact http://www.fossil-scm.org/fossil/info/8b1634f757 - but there is no record in the SQL tables of the artifact that added the closed tag in the first place. Perhaps tag changes should be displayed on the timeline? > > Since accidentally moving a tag could be seriously damaging (wrong data > gets shipped) or at the very least - extremely confusing, I want to capture > the tag state and keep it safe and accessible. I think I can do this by > getting the tags from "fossil tag list" and then running "fossil tag find > <tag>" for each tag but a quick look at the schema left me thinking it might > be better to do a direct query. Before I spend time figuring it out I'd like > advice from the list. Hack some sql or reply on command line calls? Oh, and > I suppose there is json but that I know nothing about yet. > > To explore I added a tag to one rev, then added it to another rev and > finally deleted it from the first rev and this is what I see in the sqlite3 > db: > > sqlite> select * from tag inner join tagxref on tag.tagid=tagxref.tagid > where tag.tagname='sym-testtag'; > tagid tagname tagid tagtype srcid origid > value mtime rid > ---------- ----------- ---------- ---------- ---------- ---------- > ---------- ---------------- ---------- > 26 sym-testtag 26 1 470 > 457 2455851.32158092 457 > 26 sym-testtag 26 0 471 > 468 2455851.32212765 468 > > Is the tagtype=0 mean hidden or deleted? > > Lastly, I want to create a table and store this information in the fossil > repo db itself - does fossil inspect it's own schema and potentially get > upset at extraneous data therein or can I safely go ahead and create some > tables and stick data in the fossil file? > > Thanks, > > Matt > -=- > > _______________________________________________ > fossil-users mailing list > [email protected] > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > -- D. Richard Hipp [email protected]
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

