gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] Making tla commit update the revlib


From: Tom Lord
Subject: Re: [Gnu-arch-users] Making tla commit update the revlib
Date: Thu, 23 Sep 2004 11:11:34 -0700 (PDT)

    > From: Cameron Patrick <address@hidden>

    > At the moment, when you commit a revision, it is uploaded to the
    > server and then lost forever.  Then, next time you commit or run tla
    > changes or whatever, it needs to be fetched from the archive, which can
    > can take a while if the archive lives on a remote server.  Ideally,
    > the committed revision would be added to the revision library as part
    > of the commit process.

    > I looked into what would be needed to implement this, but caught on a
    > snag: there seems to be just one function, arch_library_add() that's
    > responsible for adding a revision to a library.  It takes care of
    > fetching revisions, building and patching ancestors and other stuff
    > too.

    > What I'd like to do is to split up arch_library_add() into a bunch of
    > smaller functions.  It's close to 2am in the morning here and I'm not
    > thinking clearly enough to come up with ideas of what the smaller
    > functions should be.  

:-)

Why not simply set up a hook in ~/.arch-params/hook which invokes the
tla `library-add' command?

A handy tool for such purposes is a shell program that can detach and
run a command in the background, perhaps optionally logging its exit
status and any critical output it might produce.

-t





reply via email to

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