On Thu, Jan 31, 2008 at 04:47:08PM -0500, Nathan Gray wrote: > On Fri, Feb 24, 2006 at 07:32:32AM -0800, Jason Dagit wrote: > > On 2/24/06, Nathan Gray <[EMAIL PROTECTED]> 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?
If you're interested in darcs record, why not just add to your _darcs/prefs/defaults record --run-posthook record --posthook darcs annotate -p . -s | mail -s 'new record' [EMAIL PROTECTED] or something to that effect? -- David Roundy Department of Physics Oregon State University _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
