def pull(self):
        hg_repo_dir = self.hg_repo_dir
        in_marks = ["-B"+b.split()[0] for b in
                self._get("hg", "incoming", "-Bq", cwd=hg_repo_dir, returncodes=(0,1))]
        default_old = int(self._get("hg", "identify", "-nr", "default", cwd=hg_repo_dir)[0])
        # hg pulling with in_marks
        self._do("hg", "pull", *in_marks, cwd=hg_repo_dir)
        for branch in self._get("hg", "branches", "--active", "-q", cwd=hg_repo_dir):
            if branch <> "default":
                self._do("hg", "bookmark", "-fr", branch, branch+"_branchtracker", cwd=hg_repo_dir)
        # advance default?
        default_new = int(self._get("hg", "identify", "-nr", "default", cwd=hg_repo_dir)[0])
        if default_new > default_old:
            self._do("hg", "bookmark", "-fr", "default", "default_branchtracker", cwd=hg_repo_dir)
        self._do("hg", "gexport", cwd=hg_repo_dir)
Grab any changes from the remote repository.
dataset/ETHPy150Open dubiousjim/yagh/src/remote-hg.py/HgGitCheckout.pull