[issue2465] Work around p4 instability
Mike Sperber
bugs at mercurial.selenic.com
Fri Oct 29 18:42:21 UTC 2010
New submission from Mike Sperber <sperber at deinprogramm.de>:
The p4 command-line client sometimes fails upon doing "p4 describe" when
trying to produce a patch. (I'm guessing it's a bug in p4.) However, "hg
convert" doesn't even make use of the patch, and it can be elided by adding
"-s" to the p4 command line here:
diff --git a/hgext/convert/p4.py b/hgext/convert/p4.py
--- a/hgext/convert/p4.py
+++ b/hgext/convert/p4.py
@@ -105,10 +105,9 @@
ui.status(_('collecting p4 changelists\n'))
lastid = None
for change in self.p4changes:
- cmd = "p4 -G describe %s" % change
+ cmd = "p4 -G describe -s %s" % change
stdout = util.popen(cmd, mode='rb')
d = marshal.load(stdout)
-
desc = self.recode(d["desc"])
shortdesc = desc.split("\n", 1)[0]
t = '%s %s' % (d["change"], repr(shortdesc)[1:-1])
----------
messages: 14231
nosy: sperber
priority: bug
status: unread
title: Work around p4 instability
topic: convert, hg
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2465>
____________________________________________________
More information about the Mercurial-devel
mailing list