删除7天未触及的本地书签 [英] Delete local bookmarks that haven't been touched in 7 days

查看:89
本文介绍了删除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.

这篇关于删除7天未触及的本地书签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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