`
scm002
  • 浏览: 309804 次
社区版块
存档分类
最新评论
文章列表
https://gerrit.googlesource.com/plugins/reviewers/+doc/master/src/main/resources/Documentation/config.md   Configuration Global configuration of the @PLUGIN@ plugin is done in the reviewers.config file in the site's etc directory. [reviewers] enableREST = true enableUI = false rev ...
One or more refs/for/ names blocks change upload version v2.12.7 Table of Contents With this error message Gerrit rejects to push a commit for code review if the remote git repository has a branch under the 'refs/for/' namespace. Gerrit uses the 'refs/for/' namespace for magical ...
本文为大家讲解的是Python的高级Git库 Gittle安装使用方法,Gittle是一个高级纯python git 库。构建在dulwich之上,提供了大部分的低层机制。 Install it pip install gittle Examples : Clone a repository from gittle import Gittle repo_path = '/tmp/gittle_bare' repo_url = 'git://github.com/FriendCode/gittle.git' repo = Gittle.clone(repo_url, ...

GitPython 库

GitPython is a python library used to interact with git repositories. It provides abstractions of git objects for easy access of repository data, and additionally allows you to access the git repository more directly using either a pure python implementation, or the faster, but more resource intensi ...
如何判断一个对象是可迭代对象呢?方法是通过collections模块的Iterable类型判断:   >>> from collections import Iterable   >>> isinstance('abc', Iterable) # str是否可迭代 True   >>> isinstance([1,2,3], Iterable) # list是否可迭代 True   >>> isinstance(123, Iterable) # 整数是否可迭代False

python create_issue_link

    博客分类:
  • Jira
...
在用户目录下新建".pythonstartup"文件,写入以下内容: # python startup file import readline import rlcompleter import atexit import os #tab completion readline.parse_and_bind('tab: complete
    The underlying problem in Git is that commit-msg hooks are not called for merge commits without conflicts. However, the prepare-commit-msg is called for (any) merge commits. So what I currently do to get Gerrit's Change-Id also added to merge commits without conflicts is to use a 

json 在线格式化

    博客分类:
  • json
http://www.bejson.com/jsonviewernew/

python 字典格式化

import pprint   data = {'a': {'c': 3, 'b': 2}, 'c': {'c': 3, 'b': 2}, 'b': {'c': 3, 'b': 2}, 'e': {'c': 3, 'b': 2}, 'd': {'c': 3, 'b': 2}, 'g': {'c': 3, 'b': 2}, 'f': {'c': 3, 'b': 2}} pp = pprint.PrettyPrinter(indent=2) print pp.pprint(d)
这篇文章主要介绍了Python返回真假值(True or False)小技巧,本文探讨的是最简洁的条件判断语句写法,本文给出了两种简洁写法,需要的朋友可以参考下 如下一段代码:
查找目录下的所有文件中是否含有某个字符串 find .|xargs grep -ri "IBM" 查找目录下的所有文件中是否含有某个字符串,并且只打印出文件名  find .|xargs grep -ri "IBM" -l
You have to ensure the quotes end up in the gsql shell.ssh -p29418 <host> gerrit gsql -c '"select * from accounts;"'(first single quote ' , then double quote " )   gerrit gsql -c "\"select * from ACCOUNT_GROUP_NAMES where name='Reviewer_simulator'\"" http ...
1. 关于Registry 官方的Docker hub是一个用于管理公共镜像的好地方,我们可以在上面找到我们想要的镜像,也可以把我们自己的镜像推送上去。但是,有时候,我们的使用场景需要我们拥有一个私有的镜像仓库用于管理我们自己的镜像。这个可以通过开源软件Registry来达成目的。  Registry在github上有两份代码:老代码库和新代码库。老代码是采用python编写的,存在pull和push的性能问题,出到0.9.1版本之后就标志为deprec
1.  vim /etc/init.d/jenkins, 修改 do_start 函数的 check_tcp_port 命令,端口号从 8080 换成 8081. 2. vim /etc/default/jenkins 文件,将端口 8080 改成 8081. 3. service jenkin restart 4. ps -def|grep java
Global site tag (gtag.js) - Google Analytics