On Sat, Nov 24, 2012 at 5:40 AM, j. v. d. hoff <[email protected]>wrote:
> hi, > > I found this statement in the `technical overview' section: > > 8<----------------------------**------------------------------** > ----------------------- > When accessing the repository database using raw SQL and the fossil sql > command, the extension function "content()" with a single argument which is > the SHA1 hash of an artifact will return the complete undeleted and > uncompressed content of that artifact. > 8<----------------------------**------------------------------** > ----------------------- > > since I don't know anything about `sql',I don't understand, how to use > this. could someone please explain what to do, exactly, in order to dump > the content of revision [1234] to stdout (i.e. achieve the functionality > of, e.g., `hg cat -r 1234 some_file.txt')? > > Probably you are looking for: "fossil artifact"... $ fossil artifact --help Usage: fossil artifact ARTIFACT-ID ?OUTPUT-FILENAME? ?OPTIONS? Extract an artifact by its SHA1 hash and write the results on standard output, or if the optional 4th argument is given, in the named output file. Options: -R|--repository FILE Extract artifacts from repository FILE See also: finfo Regards, -- Martin G.
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

