summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b25b206)
raw | patch | inline | side by side (parent: b25b206)
author | Simon Hausmann <simon@lst.de> | |
Mon, 28 May 2007 17:23:19 +0000 (19:23 +0200) | ||
committer | Simon Hausmann <simon@lst.de> | |
Mon, 28 May 2007 17:23:19 +0000 (19:23 +0200) |
Fixed old calls to mypopen.
Signed-off-by: Simon Hausmann <simon@lst.de>
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4 | patch | blob | history |
index efa2fce29ea2d3f63d16c02573807b9aa672ea0b..0f1285b39b545b8b0c77818652ba7a0123ddc4d2 100755 (executable)
pipe = os.popen(c, 'w')
val = pipe.write(str)
if pipe.close():
- sys.stderr.write('Command failed')
+ sys.stderr.write('Command failed: %s' % c)
sys.exit(1)
return val
pipe = os.popen(c, 'rb')
val = pipe.read()
if pipe.close():
- sys.stderr.write('Command failed')
+ sys.stderr.write('Command failed: %s' % c)
sys.exit(1)
return val
pipe = os.popen(c, 'rb')
val = pipe.readlines()
if pipe.close():
- sys.stderr.write('Command failed')
+ sys.stderr.write('Command failed: %s' % c)
sys.exit(1)
return val
return proc.wait() == 0;
def gitConfig(key):
- return mypopen("git config %s" % key).read()[:-1]
+ return os.popen("git config %s" % key, "rb").read()[:-1]
class Command:
def __init__(self):
if not self.silent:
print "Creating/updating branch(es) in %s based on origin branch(es)" % self.refPrefix
- for line in mypopen("git rev-parse --symbolic --remotes"):
+ for line in read_pipe_lines("git rev-parse --symbolic --remotes"):
if (not line.startswith("origin/")) or line.endswith("HEAD\n"):
continue