在Mercurial中,如何查看过去24小时内推送到回购的修订? [英] In Mercurial, how can I see revisions pushed to a repo in the last 24 hours?

查看:73
本文介绍了在Mercurial中,如何查看过去24小时内推送到回购的修订?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Mercurial资料库,几个人将其从自己的本地资料库推送到.我希望能够查询该中央存储库中过去24小时内到达该存储库的所有更改,尤其是不仅仅是已提交的更改在过去的24小时内.

hg日志--date 选项无法满足我的需求.它仅基于提交日期优化选择.因此, hg log --date -1 使我从昨天开始提交了修订,但没有三天前提交的修订,而今天只是推送到此仓库. /p>

如果我能找到不到24小时前到达仓库的最旧修订的修订号(或ID),那就可以了;但是我什至看不到任何东西-即使在 hg help revsets 中-看起来也能正常工作.

解决方案

您可以使用 pushlog ,这是您在服务器端配置的Mercurial扩展.

基本上,您安装了必需的文件,并配置了服务器存储库挂钩以在每次推送时调用pushlog,然后只要有人将其推送到该存储库,脚本就会记录下来.

不幸的是,我对这个页面的了解不多,我在Mercurial的IRC频道上问到这个名字.

您可以在此处查看日志示例: calc pushlog .

此外,还可以使用包含此类日志的Web系统.这是今天更改后我的日志的样子.

I have a Mercurial repository that several people push to from their own, local repositories. I'd like to be able to query this central repository for all changes that arrived at that repository in the last 24 hours, notably not just changes that were committed in the last 24 hours.

The hg log --date option doesn't do what I need. It only refines the selection based on the date of commit. So, hg log --date -1 gets me revisions committed since yesterday, but not revisions committed, say, three days ago, but only pushed to this repo today.

If I can find the revision number (or id) of the oldest revision arriving at the repo less than 24 hours ago, that would do the trick; but I can't see anything — even in hg help revsets — that looks like it'll work.

解决方案

You can use pushlog, an extension to Mercurial that you configure server-side.

Basically you install the requisite files, and configure your server repository hooks to call into pushlog on each push, and then the script will log whenever someone pushes to that repository.

Unfortunately I don't know more about it than what's on that page, I asked on the IRC channel of Mercurial and got that name there.

You can see an example of the log here: calc pushlog.

Additionally, there are web systems you can use that contains such logs. Here's what my Kiln log looks like after todays changes.

这篇关于在Mercurial中,如何查看过去24小时内推送到回购的修订?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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