Mercurial > hg
diff hgext/convert/p4.py @ 9567:02c43e8e0835
Merge with hg-i18n-stable
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 30 Sep 2009 21:14:24 +0200 |
parents | 8761863c3118 6ea653272c09 |
children | 25e572394f5c |
line wrap: on
line diff
--- a/hgext/convert/p4.py Tue Sep 29 00:54:15 2009 +0200 +++ b/hgext/convert/p4.py Wed Sep 30 21:14:24 2009 +0200 @@ -53,7 +53,7 @@ def _parse_view(self, path): "Read changes affecting the path" cmd = 'p4 -G changes -s submitted "%s"' % path - stdout = util.popen(cmd) + stdout = util.popen(cmd, mode='rb') for d in loaditer(stdout): c = d.get("change", None) if c: @@ -72,7 +72,7 @@ views = {"//": ""} else: cmd = 'p4 -G client -o "%s"' % path - clientspec = marshal.load(util.popen(cmd)) + clientspec = marshal.load(util.popen(cmd, mode='rb')) views = {} for client in clientspec: @@ -105,7 +105,7 @@ lastid = None for change in self.p4changes: cmd = "p4 -G describe %s" % change - stdout = util.popen(cmd) + stdout = util.popen(cmd, mode='rb') d = marshal.load(stdout) desc = self.recode(d["desc"]) @@ -147,7 +147,7 @@ def getfile(self, name, rev): cmd = 'p4 -G print "%s#%s"' % (self.depotname[name], rev) - stdout = util.popen(cmd) + stdout = util.popen(cmd, mode='rb') mode = None contents = ""