monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Update to Unix Attributes and Symlinks Scripts


From: Daniel Dickinson
Subject: [Monotone-devel] Update to Unix Attributes and Symlinks Scripts
Date: Thu, 13 Jul 2006 22:09:46 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've modified the scripts and monotonerc at
http://www.venge.net/monotone/wiki/UnixAttribsAndSymlinks to use the
lua hooks for attr_init_functions on 'mtn add'.  This is much, much
faster than calling 'mtn attr get' and 'mtn attr set' from an outside
script (btw is there a way to call a number of monotone commands
without doing a separate invocation of mtn each time; it would speed up
the mtn-script considerably if the filelist were not generated twice
(attr get & set) for every file for which we want to find and/or change
attributes).

If mtn commit were to have hooks like attr_init_functions (say
attr_update_functions), that basically did attr_init_functions, but
only recorded the return value (setting or clearing attribute) if it
were different than what was already recorded, everything could be
moved inside monotone.

Also, if my execout functions which call mtn-dosh could be replaced by
popen, I think it'd be better.  I don't see that blocking popen is any
safer than this.

Cheers,

Daniel

- -- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEtv0FhvWBpdQuHxwRAjrHAJ4lsGTnTavHv57LJanqk7PKG5uKTgCgkCvn
OHuNo/kCnhbKKqUgV1UNnCk=
=++I6
-----END PGP SIGNATURE-----

reply via email to

[Prev in Thread] Current Thread [Next in Thread]