mirror of
https://github.com/golang/go.git
synced 2025-11-06 11:40:59 +00:00
codereview: add clpatch --ignore_hgpatch_errors.
of limited utility but good for creating the metadata for an AUTHORS/CONTRIBUTORS change even if the patch doesn't apply cleanly. R=r https://golang.org/cl/154140
This commit is contained in:
parent
b4586a7429
commit
1a2418f575
1 changed files with 2 additions and 1 deletions
|
|
@ -778,7 +778,7 @@ def clpatch(ui, repo, clname, **opts):
|
|||
os._exit(0)
|
||||
cmd.stdin.close()
|
||||
out = cmd.stdout.read()
|
||||
if cmd.wait() != 0:
|
||||
if cmd.wait() != 0 and not opts["ignore_hgpatch_failure"]:
|
||||
return "hgpatch failed"
|
||||
cl.local = True
|
||||
cl.files = out.strip().split()
|
||||
|
|
@ -1174,6 +1174,7 @@ cmdtable = {
|
|||
"^clpatch": (
|
||||
clpatch,
|
||||
[
|
||||
('', 'ignore_hgpatch_failure', None, 'create CL metadata even if hgpatch fails'),
|
||||
('', 'no_incoming', None, 'disable check for incoming changes'),
|
||||
],
|
||||
"change#"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue