mirror of
https://github.com/golang/go.git
synced 2025-11-06 19:51:00 +00:00
codereview: fix hg change on Windows
hg change fails on Windows with 'No valid patches found in output from hg diff'. R=rsc CC=golang-dev https://golang.org/cl/4006043
This commit is contained in:
parent
a441037f3f
commit
1e0efcd579
1 changed files with 1 additions and 1 deletions
|
|
@ -2607,7 +2607,7 @@ class MercurialVCS(VersionControlSystem):
|
||||||
self.base_rev = self.options.revision
|
self.base_rev = self.options.revision
|
||||||
else:
|
else:
|
||||||
mqparent, err = RunShellWithReturnCode(['hg', 'log', '--rev', 'qparent', '--template={node}'])
|
mqparent, err = RunShellWithReturnCode(['hg', 'log', '--rev', 'qparent', '--template={node}'])
|
||||||
if not err:
|
if not err and mqparent != "":
|
||||||
self.base_rev = mqparent
|
self.base_rev = mqparent
|
||||||
else:
|
else:
|
||||||
self.base_rev = RunShell(["hg", "parents", "-q"]).split(':')[1].strip()
|
self.base_rev = RunShell(["hg", "parents", "-q"]).split(':')[1].strip()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue