Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/p/i/piehole-HEAD/test-piehole.py   piehole(Download)
 
sys.path.append('.')
from piehole import run_git, etcd_read, etcd_write, GitFailure, BLANK, \
                    invoke_daemon, reporef, DAEMON_PORT
 
    def clobber_ref(self, value, ref='refs/heads/master'):
        while self.current_ref(ref) != value:
            with in_directory(self.repoa):
                while True:
                    if etcd_write("%s refs/heads/master" % self.repogroup,
        self.wait_for_replication()
        with in_directory(self.repoa):
            etcd_write(self.repogroup, self.repoa.url)
        self.register(omit=self.repob)
        self.workrepo.commit()
    def test_ssh(self):
        with in_directory(self.repoa):
            etcd_write(self.repogroup, self.repoa.url)
        with in_directory(self.repob):
            run("git config piehole.repourl git+ssh://localhost%s" % self.repob.root)