如何在Mercurial中扩展某些版本关键字? [英] How to expand some version keywords in Mercurial?

查看:79
本文介绍了如何在Mercurial中扩展某些版本关键字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在CVS中,我可以将$LOG$放入源文件中,并且在$LOG$中将文件签入后,它将在文件中扩展为真实日志.

In CVS I could put $LOG$ into the source file and when the file is checked in $LOG$ will be expanded into true logs in the file.

但是如何在Mercurial中实现呢?当然,我指的是其他关键字,例如最近的入住日期和时间.

But how to implement this in Mercurial? Of course I mean the other keyword such as the latest checkin date and time.

推荐答案

对于关键字扩展解决的大多数问题,它会创建更多的整个堆;在Mercurial中不推荐使用类似CVS/RCS的关键字替换-为什么不需要它但是,有文档记录了如果需要的话如何进行扩展.

For most of the problems keyword expansion solves it creates a whole heap more; isn't recommended in Mercurial CVS/RCS-like Keyword Substitution - Why You Don't Need It however it is documented how to do it with expansions if you really need to.

我不是唯一不建议使用关键字扩展的 ,尽管有时可能有用,但确实需要认真思考.

I'm not the only one to advise against keyword expansion, although there are times it can be useful one really needs to think hard before doing it.

这篇关于如何在Mercurial中扩展某些版本关键字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆