I hereby claim:
- I am dpursehouse on github.
- I am dpursehouse (https://keybase.io/dpursehouse) on keybase.
- I have a public key whose fingerprint is B1BB CF25 500D D82F 62C2 2D43 D4E7 8DDC DD51 C039
To claim this, I am signing this object:
from pygerrit2 import GerritRestAPI, HTTPBasicAuthFromNetrc | |
url = "https://gerrit-review.googlesource.com" | |
auth = HTTPBasicAuthFromNetrc(url=url) | |
api = GerritRestAPI(url=url, auth=auth) | |
plugins = api.get("/projects/?p=plugins%2f&d") | |
branches = ["master"] + ["stable-%s" % v for v in ["3.0", "2.16", "2.15", "2.14"]] | |
def getRecentChangesCount(pluginName): | |
changes = api.get("/changes/?q=project:%s after:2018-11-01" % pluginName) |
(pygerrit2) dpursehouse@dpursehouse:~/git/pygerrit2$ python | |
Python 3.7.1 (default, Nov 6 2018, 18:46:03) | |
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from pygerrit2 import GerritRestAPI | |
>>> api = GerritRestAPI("https://gerrit-review.googlesource.com") | |
>>> changes = api.get("/changes/?q=hashtag:removereviewdb+status:merged") | |
>>> len(changes) | |
117 | |
>>> sum([change['deletions'] for change in changes]) |
I hereby claim:
To claim this, I am signing this object:
Rebuilding the notedb | |
Foo: done: 100% (2/2), done | |
test-project: done: 9% (8/87) (/)[2014-11-27 09:33:42,121] WARN com.google.gerrit.server.account.AccountCacheImpl : Cannot load AccountState for 1000001 | |
java.util.concurrent.ExecutionException: com.google.gwtorm.server.OrmException: Cannot open database connection | |
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299) | |
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286) | |
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) | |
at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:137) | |
at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2348) | |
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2320) |
gerrit $ buck build plugins/xdocs | |
Using buckd. | |
[-] PROCESSING BUCK FILES...FINISHED 0.1s | |
[+] BUILDING...0.4s (185/187 JOBS) | |
|=> IDLE | |
|=> IDLE | |
|=> IDLE | |
|=> IDLE | |
|=> //plugins/xdocs:xdocs__plugin... 0.3s (running javac[0.3s]) | |
/Users/david/git/gerrit/plugins/xdocs/src/main/java/com/googlesource/gerrit/plugins/xdocs/XDocServlet.java:40: error: package com.google.gwtexpui.server does not exist |
$ java -jar ./buck-out/gen/gerrit.war reindex -d ~/gerrit_testsite | |
[2014-02-12 14:44:37,463] INFO com.google.gerrit.server.git.LocalDiskRepositoryManager : Defaulting core.streamFileThreshold to 886m | |
[2014-02-12 14:44:37,585] INFO com.google.gerrit.server.cache.h2.H2CacheFactory : Enabling disk cache /home/david/gerrit_testsite/cache | |
[2014-02-12 14:44:37,649] INFO org.apache.solr.client.solrj.impl.HttpClientUtil : Creating new http client, config: | |
[2014-02-12 14:44:37,659] INFO org.apache.solr.client.solrj.impl.HttpClientUtil : Creating new http client, config: | |
[2014-02-12 14:44:37,684] INFO org.apache.zookeeper.ZooKeeper : Client environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT | |
[2014-02-12 14:44:37,684] INFO org.apache.zookeeper.ZooKeeper : Client environment:host.name=xxxx | |
[2014-02-12 14:44:37,684] INFO org.apache.zookeeper.ZooKeeper : Client environment:java.version=1.7.0_45 | |
[2014-02-12 14:44:37,684] INFO org.apache.zookeeper.ZooKeeper : Client environment:java.vendor=Orac |
$ cat test.py | |
from dulwich.client import TCPGitClient | |
from dulwich.repo import Repo | |
from dulwich.server import DictBackend, TCPGitServer | |
import sys | |
import threading | |
repo = Repo.init("remote", mkdir=True) | |
cid = repo.do_commit("message", committer="Jelmer <jelmer@samba.org>") | |
backend = DictBackend({'/': repo}) |
$ buck build api | |
[-] PARSING BUILD FILES...FINISHED 1.0s | |
[+] BUILDING...1.3s | |
|=> IDLE | |
|=> IDLE | |
|=> IDLE | |
|=> IDLE | |
|=> IDLE | |
|=> //gerrit-server:server__compile... 1.2s (running javac[1.0s]) | |
|=> IDLE |
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.4:deploy-file' --> | |
[DEBUG] (f) artifactId = gerrit-extension-api | |
[DEBUG] (f) file = /home/david/gerrit/buck-out/gen/extension-api.jar | |
[DEBUG] (f) generatePom = true | |
[DEBUG] (f) groupId = com.google.gerrit | |
[DEBUG] (s) localRepository = Repository[local|file:///home/david/.m2/repository] | |
[DEBUG] (f) packaging = jar | |
[DEBUG] (f) repositoryId = gerrit-api-repository | |
[DEBUG] (f) repositoryLayout = default | |
[DEBUG] (f) uniqueVersion = true |
[2013-11-26 16:13:28,619] ERROR com.google.gerrit.pgm.Daemon : Unable to start daemon | |
com.google.inject.ProvisionException: Guice provision errors: | |
1) Error injecting constructor, java.lang.UnsupportedClassVersionError: org/eclipse/jetty/server/RequestLog : Unsupported major.minor version 51.0 | |
at com.google.gerrit.pgm.http.jetty.GetUserFilter$Module.<init>(GetUserFilter.java:50) | |
while locating com.google.gerrit.pgm.http.jetty.GetUserFilter$Module | |
1 error | |
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1014) | |
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1040) |