Can Fossil insert the SHA1 checksum of an immediate commit into a file? -
say want commit new version repository, i'd automatically insert checksum of new commit (unknown me) file (or somewhere file) needs me commited. there way in fossil?, or possible tell fossil run executable or script before every commit automatically edit file insert checksum?
thanks
the file manifest.uuid
contains checksum of commit, , file manifest
contains list of files in commit , individual checksums. (manifest.uuid
sha1 of manifest). both files plain text , easy parse.
the build fossil shows 1 use. when building, file manifest.uuid converted awk) c string literal of form "[1234567890]"
, used form text of revision name appears in html page footers.
do note recent versions of fossil don't leave files behind unless "manifest" setting enabled command fossil setting manifest 1
.
alternatively, can parse output of fossil info
or fossil status
, both of include value of current checkout's id.
for single file, fossil finfo
report file's complete change history, include artifact id file @ each point in time. parsed artifact id of file. better, fossil sha1sum
report sha1 sum of file (or files, or stdin). sha1 sum of file is artifact id.
since id of entire checkin sha1 of manifest includes sha1's of each checked in file, impossible include id of checkin inside file checked in.
Comments
Post a Comment