Simple API questions
seedifferently
seth at sethdavis.net
Sat Aug 15 22:26:42 UTC 2009
I want to add some simple versioning control to my webapp using the Mercurial
API. My intentions are to accomplish the following:
1. Allow the user to upload files through a web-form that will be dumped
into the repo (hopefully skipping an intermediate write-file-to-disk step,
but rather writing directly to the repo with a commit).
2. Allow the user to view different revisions of a the file.
3. Keep the repository directory "bare" (eg. hg update null), and
retrieving/saving files to/from the repository without having files in the
repo dir (and without having to deal with multiple heads).
Seeing as the Mercurial API doesn't seem to be very well documented, I was
hoping someone could point me in the right direction for the mercurial
modules to inspect for this type of functionality. I've done pretty well so
far in retrieving changesets and information, but I haven't really been able
to figure out how to skip using a "real repo directory" and just doing
direct reads/writes to/from a bare repo (at least without getting into
multiple heads and such).
Thank you!
Seth
--
View this message in context: http://www.nabble.com/Simple-API-questions-tp24988656p24988656.html
Sent from the Mercurial mailing list archive at Nabble.com.
More information about the Mercurial
mailing list