summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/codereview/codereview.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py
index dd56de8b1..ffcf945be 100644
--- a/lib/codereview/codereview.py
+++ b/lib/codereview/codereview.py
@@ -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#"