Mercurial > piecrust2
comparison foodtruck/scm/mercurial.py @ 626:a1697b1066bc
admin: Use `HGPLAIN` for the Mercurial VCS provider.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 08 Feb 2016 23:26:05 -0800 |
parents | c37307a72f79 |
children | a77b4656c602 |
comparison
equal
deleted
inserted
replaced
625:7f95c5e91a31 | 626:a1697b1066bc |
---|---|
62 | 62 |
63 def _run(self, cmd, *args, **kwargs): | 63 def _run(self, cmd, *args, **kwargs): |
64 exe = [self.hg, '-R', self.root_dir] | 64 exe = [self.hg, '-R', self.root_dir] |
65 exe.append(cmd) | 65 exe.append(cmd) |
66 exe += args | 66 exe += args |
67 | |
68 env = dict(os.environ) | |
69 env['HGPLAIN'] = 'True' | |
70 | |
67 logger.debug("Running Mercurial: " + str(exe)) | 71 logger.debug("Running Mercurial: " + str(exe)) |
68 out = subprocess.check_output(exe) | 72 proc = subprocess.Popen(exe, stdout=subprocess.PIPE, env=env) |
73 out, _ = proc.communicate() | |
74 | |
69 encoded_out = _s(out) | 75 encoded_out = _s(out) |
70 return encoded_out | 76 return encoded_out |
71 | 77 |