Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 1516:0b1b029b4de3
Automatically run "verify" whenever we run "recover"
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 08 Nov 2005 14:22:03 -0800 |
parents | faf46d810a85 |
children | 5b19dea9d4fd |
comparison
equal
deleted
inserted
replaced
1515:3bd6d27cb81c | 1516:0b1b029b4de3 |
---|---|
1730 Recover from an interrupted commit or pull. | 1730 Recover from an interrupted commit or pull. |
1731 | 1731 |
1732 This command tries to fix the repository status after an interrupted | 1732 This command tries to fix the repository status after an interrupted |
1733 operation. It should only be necessary when Mercurial suggests it. | 1733 operation. It should only be necessary when Mercurial suggests it. |
1734 """ | 1734 """ |
1735 repo.recover() | 1735 if repo.recover(): |
1736 return repo.verify() | |
1737 return False | |
1736 | 1738 |
1737 def remove(ui, repo, pat, *pats, **opts): | 1739 def remove(ui, repo, pat, *pats, **opts): |
1738 """remove the specified files on the next commit | 1740 """remove the specified files on the next commit |
1739 | 1741 |
1740 Schedule the indicated files for removal from the repository. | 1742 Schedule the indicated files for removal from the repository. |