Chromium Code Reviews| Index: git_cl.py |
| diff --git a/git_cl.py b/git_cl.py |
| index 2fd5d852f15d892dc6ae968fbd2ceee33cdb4666..7693dad34b42ebecdee2bddd317cfc5d4d7dd261 100755 |
| --- a/git_cl.py |
| +++ b/git_cl.py |
| @@ -1285,6 +1285,15 @@ def CMDupload(parser, args): |
| if not options.reviewers and hook_results.reviewers: |
| options.reviewers = hook_results.reviewers |
| + if cl.GetIssue(): |
| + latest_patchset = cl.GetMostRecentPatchset(cl.GetIssue()) |
| + local_patchset = cl.GetPatchset() |
| + if local_patchset < latest_patchset: |
| + print 'The last upload made from this repository was patchset #%d but ' \ |
|
M-A Ruel
2013/03/18 18:15:41
Use () instead of \
koz (OOO until 15th September)
2013/03/18 23:23:55
Done.
|
| + 'the most recent patchset on the server is #%d.' \ |
| + % (local_patchset, latest_patchset) |
| + ask_for_data('About to upload; enter to confirm.') |
| + |
| print_stats(options.similarity, options.find_copies, args) |
| if settings.GetIsGerrit(): |
| return GerritUpload(options, args, cl) |