Mozilla Mercurial存储库的快速缓存

mo-hg的Python项目详细描述


更多汞!





>使用elasticsearch作为mozilla的mercurial存储库的快速缓存。




>>>+-----------+
>




>
>
>
==========================================================================================================————+
dev生成状态||
+——+——+————+————————————————————————————————————————————————————————————————————————————————————————————————————代码::python

hg=hg mozilla org({
“使用缓存”:true,
“hg”:{
“url”:“https://hg.mozilla.org”
},
“分支”:{
“主机”:“http://localhost”,
“端口”:9200,
“索引”:“分支”,“类型”:“分支”,
“timeout”:300,
“schema”:{
“$ref”:“/./resources/branch.json”
},
“debug”:false,
“limit_replicas”:false
},
“repo”:{
“host”:“http://localhost”,
“port”:9200,
“index”:“repo”,
“type”:“revision”,
“timeout”:300,
“schema”:{
“$ref”:“//./resources/revision.json”
},
“debug”:false,
“limit_replicas”:false
}
}


,然后在需要修订时调用“get_revision()”:

……代码::python

rev=hg.get_revision({
“changeset”:{“id”:“b3649fd5cd7a76506d2cf04f45e39cbc972fb553”},
“branch”:{“name”:“mozilla inbound”}

……是的,调用确实需要一个“复杂”的dict
参数:目的是将部分修订对象转换为
已完成的修订对象。|构建状态图像::https://travis-ci.org/klahnakoski/mo-hg.svg?branch=master
:目标:https://travis ci.org/klahnakoski/mo hg
…|构建状态图像::https://travis-ci.org/klahnakoski/mo-hg.svg?branch=dev
:目标:https://travis ci.org/klahnakoski/mo hg
…|构建状态图像::https://travis-ci.org/klahnakoski/mo-hg.svg?branch=master
:目标:https://travis ci.org/klahnakoski/mo hg
…|构建状态图像::https://travis-ci.org/klahnakoski/mo-hg.svg?branch=dev
:目标:https://travis-ci.org/klahnakoski/mo-hg

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java JTable无法向新创建的列添加值   java如何调整JEditorPane中编辑区域的大小?   Java通过反射确定未知数组中的数组大小   java Intellij Idea有时无法按其预期的方式构建应用程序   java Swing GUI带有IntelliJ错误“contentPane不能设置为null”从终端编译时   如何将这些通用方法调用从C#转换为Java   在null上找不到java属性或字段“index”   从Java HashMap获取整数值时是否需要调用intValue()方法?   java Android谷歌地图获取相机中的图像块   unix无法捕获JAVA中“who m”命令的输出   java,同时将邮件发送到“收件人”标题“我”中的多个收件人   在java中向链表添加未知数量的节点   无法为Heroku上的discord bot设置java端口   java使用Apache HttpClient进行选项请求   与元素类型“ApplicationName”关联的属性“Application Version”需要java Open quote   Android Studio Java中的两个变量求和