(Ab)using hg for data logging
Matt Mackall
mpm at selenic.com
Thu Apr 25 14:12:43 UTC 2013
On Thu, 2013-04-25 at 15:19 +0200, Marko Käning wrote:
> Hi,
>
> I am perhaps abusing hg here, but I am generating tons of log files which
> I want to keep in line with other files of my project.
>
> Every time I commit the code also those concurrently generated data files
> get stored.
>
> The question:
> Does hg take a snapshot of all files at the moment before the
> commit and does it work with that snapshot instead of the files how they
> look like a second after issueing "hg commit" command, or not???
There's no way to get an instantaneous snapshot of a directory tree on
the average filesystem. Thus, if you are writing to tracked files
between the time a commit command started and ends, what precisely is
recorded is undefined.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list