Did I find the right examples for you? yes no

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)

            def inner(command, *args, **kwargs):
        repo = kwargs.pop("repo", None)
        if kwargs:
            raise TypeError, kwargs

        args = list(args)

        proc_kwargs = {}
        if repo is not None:
            proc_kwargs["cwd"] = repo

        command_line = [bin_name, command] + args
        print " ".join(command_line)
        try:
            return subprocess.check_output(command_line, **proc_kwargs)
        except subprocess.CalledProcessError as e:
            print proc_kwargs
            print e.output
            raise
        


src/w/p/wptrunner-0.2.5/wptrunner/update.py   wptrunner(Download)
 
import vcs
from vcs import git, hg
manifest = None
import metadata
    def is_type(cls, path):
        try:
            hg("root", repo=path)
        except:
            return False
    def push(self, local_tree):
        sys.exit(1)
        patch_name = "try_" + str(uuid.uuid4())
        hg("qnew", "-m", self.options_message(), patch_name, repo=local_tree.root)
        hg("push", "-f", "-r tip", try_server.url, repo=local_tree.root)
        hg("qpop", repo=local_tree.root)