Bill Shannon wrote:
Stephen Lau wrote:
A one-time translation of the keywords to a reversible format, such as
that used by RCS, would likely also be acceptable.


Rich tried this and I futzed with it a little bit; we tried using
encode/decode filters - but I believe it would slow down pulls/clones
incredibly as it would have to transform each and every single file on a
pull/clone/push.  I think Rich expressed this same concern.

If you use the RCS keyword approach I think you only pay when you
do a commit.

This is the approach I was referencing earlier in the thread when I mentioned not being able to (currently) find an ideal place to hook this in.

In reference to Steve's question, no, I didn't do any timings of expand-on-update, while I hate to use the phrase without timings, it seems 'obvious', that expanding the keywords in each and every file on clone is going to be slower than not doing so, after that I would expect near equivalence.

In general this is something I've been meaning to ask the mercurial list (who I happily see are Cc'd) about.

Mercurial folk, is there a hook I'm not seeing that would allow for
RCS-like keyword/ident string expansion on commit?

The recipe on the mercurial wiki seems to rely on a bug where the dirstate gets confused by such shenanigans (this is from rather old memory, please correct me if I'm wrong here).

 -- Rich
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to