[darcs-users] Fwd: Execute Automatic command with each commit
Nathan Gray
kolibrie at graystudios.org
Thu Jan 31 21:47:08 UTC 2008
On Fri, Feb 24, 2006 at 07:32:32AM -0800, Jason Dagit wrote:
> On 2/24/06, Nathan Gray <kolibrie at graystudios.org> wrote:
> > On Thu, Feb 23, 2006 at 04:22:11PM -0800, Jason Dagit wrote:
> > > Look at posthooks in the darcs manual. If you have any problems with
> > > them let me know I should be able to help.
> >
> > I would like to know which files have been updated with the record, so
> > that I can pass that information to my posthook script. I vaguely
> > remember something about storing that info in environment variables.
>
> As far as I know no one has implemented that yet. One hackish way to
> do would be to look at file modification times. Store in a file the
> time stamps of all the files in the directory and time stamps which
> change would indicate files that have been updated. It's not perfect
> but probably the quickest to implement. You could probably just write
> the output of ls with date information to a file, diff that with the
> data from the previous time, extract the files names which have
> changed and then use those names.
>
> I doubt it would be hard to implement, but I'm stalled from doing any
> darcs development at the moment with real life demands.
I wrote a script last year that does something like what you suggest,
and I also entered a ticket (http://bugs.darcs.net/issue524).
I'm not sure where about in the source code to start looking (nor am
I confident in my Haskell skills).
Anyone have a moment to look into this?
-kolibrie
More information about the darcs-users
mailing list