删除7天未触及的本地书签
我应该如何清理最近未使用过的所有本地书签(比如说过去7天)?使用
How should I clean up all the local bookmarks that hasn't been touched recently (say in the past 7 days)? Using
hg bookmark -d <bookmark name>
似乎不可扩展.
据我所知,没有有关书签何时更新为最新或何时创建的信息.您只能轻松获取有关它们附加的提交期限的信息,例如
To my knowledge there is no information as to when a bookmark was updated to last or when it was created; you can only obtain the information of the age of the commits they are attached to easily, e.g.
hg log -r "bookmark() and date('-1000')"
hg log -r "bookmark() and date('<01/30/2015')"
针对过去1000天内创建的提交所附加的所有书签,或2015年1月30日之前提交的所有附加书签.
for all bookmarks attached to commits created in the last 1000 days or all bookmarks attached to commits older than January 30th 2015.
要添加的有期刊扩展.它允许实际跟踪书签附加到的修订版本以及修订的日期.因此,如果您想将来解决问题,则可能需要启用此扩展.
EDIT to add: There is the Journal Extension. It allows to actually track when and to which revisions a bookmark was attached to. Thus you might want to enable this extension if you want to solve your problem for the future.