On Wed, Aug 16, 2017 at 7:19 PM, Stephan Beal <sgb...@googlemail.com> wrote: > On Wed, Aug 16, 2017 at 7:17 PM, David Mason <dma...@ryerson.ca> wrote: >> >> Wow... longest thread I've ever seen. > > > Naw - there've been a few longer ones. > >> >> Then go to >> localhost:8081/artifact/1bea11bf4a97b012e7d8b17c71a7d444f0b5a5aa >> and you'll get the exact file you're looking for. Of course, if someone >> edited the file you're SOL. There may be a command-line way to do this, but >> I can't find it. >
Command-line way: To get the web page: printf "GET /artifact/`shasum YOURFILE | cut -d ' ' -f 1` HTTP/1.0\n\n" | fossil test-http Whatis: fossil whatis `shasum YOURFILE | cut -d ' ' -f 1` But, as Stephan already mentioned, if YOURFILE has been modified since the last commit, this will not work. BR, Johan > > [stephan@host:~]$ f help whatis > Usage: f whatis NAME > > Resolve the symbol NAME into its canonical artifact hash > artifact name and provide a description of what role that artifact > plays. > > Options: > > --type TYPE Only find artifacts of TYPE (one of: 'ci', 't', > 'w', 'g', or 'e'). > -v|--verbose Provide extra information (such as the RID) > > > > But, correct: if someone edits the file (i.e. changes the hash) then this is > useless. > > -- > ----- stephan beal > http://wanderinghorse.net/home/stephan/ > "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of > those who insist on a perfect world, freedom will have to do." -- Bigby Wolf > > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users