[darcs-devel] [issue524] posthook should be aware of which patches are affected
Nathan Gray
bugs at darcs.net
Thu Aug 23 14:41:04 UTC 2007
New submission from Nathan Gray <kolibrie at graystudios.org>:
There has been discussion from time-to-time about how to pass patch
and/or file information to a posthook command. If I recall correctly,
the dominant opinion is that this information could be supplied in an
environment variable.
My workaround is currently to run a perl script to find patches with a
recent update time, and write those to a file:
apply posthook /usr/local/bin/applied_patches.pl 15 > _darcs/prefs/applied_patches; /usr/local/bin/applied_patches.pl --files 15 > _darcs/prefs/applied_files
apply run-posthook
I would love to have the hashes of each affected patch in one
environment variable, and the names of each affected file in another
environment variable. They could be called something simple like:
DARCS_PATCHES and DARCS_FILES, or have HOOK or POSTHOOK in there
somewhere if we want to get fancy.
I am attaching my perl script 'applied_patches.pl' as an example of
what I am doing. It is barely sufficient for what I am currently
doing, but can very easily give incorrect results.
-kolibrie
----------
files: applied_patches.pl
messages: 2094
nosy: beschmi, droundy, kolibrie, kowey, tommy
status: unread
title: posthook should be aware of which patches are affected
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue524>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: applied_patches.pl
Type: text/x-perl
Size: 1322 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20070823/9d7e947c/attachment.pl
More information about the darcs-devel
mailing list