Chromium Code Reviews| Index: third_party/re2/lib/codereview/codereview.py |
| diff --git a/third_party/re2/lib/codereview/codereview.py b/third_party/re2/lib/codereview/codereview.py |
| index d26df2a5f18028629e225dcb7648936d1ef4273c..b892727c15e9467369cccca47e1a627cdb6748eb 100644 |
| --- a/third_party/re2/lib/codereview/codereview.py |
| +++ b/third_party/re2/lib/codereview/codereview.py |
| @@ -711,7 +711,10 @@ Examples: |
| ''' |
| def promptyesno(ui, msg): |
| - return ui.promptchoice(msg, ["&yes", "&no"], 0) == 0 |
| + if hgversion >= "2.7": |
| + return ui.promptchoice(msg + " $$ &yes $$ &no", 0) == 0 |
| + else: |
| + return ui.promptchoice(msg, ["&yes", "&no"], 0) == 0 |
|
hans
2014/09/07 03:09:19
Was merging this intentional?
Nico
2014/09/07 03:11:25
Yup, it's part of that upstream revision: https://
|
| def promptremove(ui, repo, f): |
| if promptyesno(ui, "hg remove %s (y/n)?" % (f,)): |
| @@ -2609,7 +2612,7 @@ def RietveldSetup(ui, repo): |
| rpc = None |
| global releaseBranch |
| - tags = repo.branchtags().keys() |
| + tags = repo.branchmap().keys() |
| if 'release-branch.go10' in tags: |
| # NOTE(rsc): This tags.sort is going to get the wrong |
| # answer when comparing release-branch.go9 with |