Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 44134:e96ed3a61899 stable
recover: fix typos
Differential Revision: https://phab.mercurial-scm.org/D7971
author | Valentin Gatien-Baron <vgatien-baron@janestreet.com> |
---|---|
date | Wed, 22 Jan 2020 14:11:11 -0500 |
parents | 4322de8f7016 |
children | 0ab651b5f77c 75c2ca094d3a |
comparison
equal
deleted
inserted
replaced
44133:1f8f215219ff | 44134:e96ed3a61899 |
---|---|
5669 return result | 5669 return result |
5670 | 5670 |
5671 | 5671 |
5672 @command( | 5672 @command( |
5673 b'recover', | 5673 b'recover', |
5674 [(b'', b'verify', True, b"run `hg verify` after succesful recover"),], | 5674 [(b'', b'verify', True, b"run `hg verify` after successful recover"),], |
5675 helpcategory=command.CATEGORY_MAINTENANCE, | 5675 helpcategory=command.CATEGORY_MAINTENANCE, |
5676 ) | 5676 ) |
5677 def recover(ui, repo, **opts): | 5677 def recover(ui, repo, **opts): |
5678 """roll back an interrupted transaction | 5678 """roll back an interrupted transaction |
5679 | 5679 |
5689 if ret: | 5689 if ret: |
5690 if opts['verify']: | 5690 if opts['verify']: |
5691 return hg.verify(repo) | 5691 return hg.verify(repo) |
5692 else: | 5692 else: |
5693 msg = _( | 5693 msg = _( |
5694 b"(verify step skipped, run `hg verify` to check your " | 5694 b"(verify step skipped, run `hg verify` to check your " |
5695 b"repository content)\n" | 5695 b"repository content)\n" |
5696 ) | 5696 ) |
5697 ui.warn(msg) | 5697 ui.warn(msg) |
5698 return 0 | 5698 return 0 |
5699 return 1 | 5699 return 1 |