[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] in-tree pristines fatally wounded (merge-fest etc)
From: |
Robert Collins |
Subject: |
Re: [Gnu-arch-users] in-tree pristines fatally wounded (merge-fest etc) |
Date: |
Tue, 02 Dec 2003 08:52:03 +1100 |
To use the new features, one might do this:
in ~/arch-params/hook (*)
===
#!/bin/sh
case "$1" in
find-pristine|make-pristine|make-tmp-pristine)
tla library-add --sparse ${ARCH_ARCHIVE}/${ARCH_REVISION}
;;
esac
===
mkdir ~/arch/revisionlibrary
tla my-revision-library ~/arch/revisionlibrary
tla get --hard-links --sparse address@hidden/tla--devo--1.1 tla
cd tla
tla changes
the get command will seed the library, and not create a pristine.
the changes command will use the hook, find it in the ilbrary (or add it
if needed - say you already have a working dir), and then use the
instance in the library.
(*) ~/.arch-params/hook is a essential bit of component for any tla
user. It's not part of the distribution, as it's locally customised.
So, here is a request for 'someone' to do a little bit of hacking.
1) Create a new command 'hook-default-contents'
This command will dump out a sample hook file that lists all the
possible hooks, and does harmless defaults. I.e. uses a revision library
IFF one exists. The initial contents could be all no-ops.
2) Alter libarch/hooks.c:arch_run_hook() so that,
If the hook file doesn't exist, one is created with the output from
'hook-default-contents', and is made user executable. This file is then
used.
Anyone that doesn't want any hooks can just zap the contents to be a
null script.
This would IMO be of great assistance in making tla setup easier for
users.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
signature.asc
Description: This is a digitally signed message part
- [Gnu-arch-users] in-tree pristines fatally wounded (merge-fest etc), Tom Lord, 2003/12/01
- Re: [Gnu-arch-users] in-tree pristines fatally wounded (merge-fest etc),
Robert Collins <=
- Re: [Gnu-arch-users] in-tree pristines fatally wounded (merge-fest etc), Miles Bader, 2003/12/01
- Re: [Gnu-arch-users] in-tree pristines fatally wounded (merge-fest etc), Tom Lord, 2003/12/01
- [Gnu-arch-users] Re: in-tree pristines fatally wounded (merge-fest etc), Miles Bader, 2003/12/01
- [Gnu-arch-users] Re: in-tree pristines fatally wounded (merge-fest etc), Tom Lord, 2003/12/02
- [Gnu-arch-users] Re: in-tree pristines fatally wounded (merge-fest etc), Miles Bader, 2003/12/02
- Re: [Gnu-arch-users] Re: in-tree pristines fatally wounded (merge-fest etc), Thomas Zander, 2003/12/02
- Re: [Gnu-arch-users] Re: in-tree pristines fatally wounded (merge-fest etc), Charles Duffy, 2003/12/02
- Re: [Gnu-arch-users] Re: in-tree pristines fatally wounded (merge-fest etc), Thomas Zander, 2003/12/02
- [Gnu-arch-users] Re: Re: in-tree pristines fatally wounded (merge-fest etc), Stig Brautaset, 2003/12/02
- Re: [Gnu-arch-users] Re: in-tree pristines fatally wounded (merge-fest etc), Charles Duffy, 2003/12/02