On Tue, Oct 24, 2006 at 06:38:42PM -0700, Bill Shannon wrote: > Richard Lowe wrote: > >SCCS keywords are expanded on get, collapsed on delget. > >However, there's the sccs edit step which get's your file with keywords > >unexpanded, for editing. Thus SCCS-style keywords do not have to be > >reversible, there is no step in the process that requires the expansion > >to be reversed. > > > >Mercurial, however, does not operate this way. There is no 'edit' step, > >and any keyword format used, as best I can tell *MUST* be reversible. > > I think, with sufficient work, you could introduce an edit step. > If the file is stored with the keywords unexpanded, and you override > the "get" equivalent to expand them, you could also have an "edit" > equivalent that made the file writable and gave you the unexpanded > keywords. Don't know what else that would break. And surely it > wouldn't consistent with how people expect to use Mercurial. > > 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. I didn't do any formal timings though... Rich? Did you? cheers, steve -- stephen lau // [EMAIL PROTECTED] | 650.786.0845 | http://whacked.net opensolaris // solaris kernel development _______________________________________________ tools-discuss mailing list tools-discuss@opensolaris.org