handling zip files

hamann.w at t-online.de hamann.w at t-online.de
Fri Dec 20 16:54:48 UTC 2013


>> On 20/12/13 05:28, hamann.w at t-online.de wrote:

>> Hi Wolfgang,
>> 
>> Since you are already detecting changes above I would guess that you 
>> mean that the external repository has changed and you have pulled those 
>> changes to your local repository - this would not actually change the 
>> local files until you run an update - so adding an update hook would 
>> trigger your action(s).
>> 
>> Steve

Hi Steve,

I am using mercurial in a somewhat uncommon setup:
there is a "project" folder as usual, with subfolders, for both subprojects and test areas
A script is running that notices changes to candidate files (all files with specific extension)
in a set of folders.
When a change is detected, a timer starts running. If there is no further change
within a certain time (just enough to do the equivalent of a make) the script invokes a
hg commit with a default message.
The reason to trap would be to automatically add another folder to the system once the
first file is added to the repository.
I have just tried to use a regular shell function for this purpose
function hg {
if [ "$1" = add ]; then ..... $@; fi
hg $@
}

Regards
Wolfgang




More information about the Mercurial mailing list