AW: Automatically change property
From: Felix Gilcher <felix.gilcher_at_exozet.com>
Date: Tue, 8 Jan 2008 17:18:13 +0100
Hi,
I won't say it's unnecessary but close to impossible - you *must* not alter the commit in a pre-commit hook or you may cause havoc. You may, however use a post-commit hook to make a separate commit to update the property - possibly leading to conflicts on pretty much every following commit. The best way to do this might be wrapping the commandline client in a script that updates the property just before the commit. But then you can't use subclipse, tortoise or anything else any more.
[sorry for top-posting, this outlook is way too stupid]
Regards
felix
-- Felix Gilcher Head of IT Development E-Mail: mailto:felix.gilcher_at_exozet.com URL: http://www.exozet.com/ Tel: +49 (30) 2 46 56 0 - 0 Fax: +49 (30) 2 46 56 0 - 29 -----Ursprüngliche Nachricht----- Von: Ehler, Benedikt [mailto:B.Ehler_at_kostal.com] Gesendet: Dienstag, 8. Januar 2008 15:55 An: 'users_at_subversion.tigris.org' Betreff: Automatically change property Hello all! Is it possible to change a property via a hook script? We want to emulate a CVS-like revision number by properties. So every file should get a property called "Revision_Number" or something like that. The value of this prop should be counted up every time a new version of this file is checked in (like CVS/PVCS). So every time a new version should be checked in, a script will check the "Revision_Number"-property and will then increase it. I know man should not do this, but it was a concrete question of my boss. So please don't say this is unnecessary, i know it. Thank you for your answers! Greetings Leopold KOSTAL GmbH & Co. KG - Sitz Lüdenscheid, Registergericht Iserlohn HRA 2854, phG Kostal Verwaltungsgesellschaft mbH, Registergericht Iserlohn HRB 4061 - USt-Id-Nr./Vat No.: DE 125800885 Post- und Werksanschrift: An der Bellmerei 10, D-58513 Lüdenscheid * Telefon: +49 2351 16-0 * Telefax: +49 2351 16-2400 Bellmerei Geschäftsführung: Dipl.-Kfm. Helmut Kostal (Vorsitzender), Dipl.-Wirtsch.-Ing. Hermann Eidel, Dipl.-Ing. Marwin Kinzl, Dr.-Ing. Ludger Laufenberg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional commands, e-mail: users-help_at_subversion.tigris.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional commands, e-mail: users-help_at_subversion.tigris.orgReceived on 2008-01-08 17:19:04 CET |
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.