Mercurial > evolve
comparison hgext/evolve.py @ 708:0ff2251adfe0
evolve: clean up help message
author | Levi Bard <levi@unity3d.com> |
---|---|
date | Sat, 09 Feb 2013 18:07:49 +0100 |
parents | f914e315b717 |
children | 79a1d2816bdb |
comparison
equal
deleted
inserted
replaced
707:f914e315b717 | 708:0ff2251adfe0 |
---|---|
864 def evolve(ui, repo, **opts): | 864 def evolve(ui, repo, **opts): |
865 """Solve trouble in your repository | 865 """Solve trouble in your repository |
866 | 866 |
867 - rebase unstable changeset to make it stable again, | 867 - rebase unstable changeset to make it stable again, |
868 - create proper diff from bumped changeset, | 868 - create proper diff from bumped changeset, |
869 - merge divergent changeset. | 869 - merge divergent changesets. |
870 | 870 |
871 By default, take the first troubles changeset that looks relevant. | 871 By default, take the first trouble changeset that looks relevant. |
872 | 872 |
873 (The logic is still a bit fuzzy) | 873 (The logic is still a bit fuzzy) |
874 | 874 |
875 - For unstable, that mean the first which could be rebased as child of the | 875 - For unstable, this means taking the first which could be rebased as a |
876 working directory parent revision or one of its descendants and rebase | 876 child of the working directory parent revision or one of its descendants |
877 it. | 877 and rebasing it. |
878 | 878 |
879 - For divergent this mean "." if applicable. | 879 - For divergent, this means taking "." if applicable. |
880 | 880 |
881 With --any, evolve pick any troubled changeset to solve | 881 With --any, evolve picks any troubled changeset to solve. |
882 | 882 |
883 The working directory is updated to the newly created revision. | 883 The working directory is updated to the newly created revision. |
884 """ | 884 """ |
885 | 885 |
886 contopt = opts['continue'] | 886 contopt = opts['continue'] |
903 ui.write_err(_('nothing to evolve here\n')) | 903 ui.write_err(_('nothing to evolve here\n')) |
904 ui.status(_('(%i troubled changesets, do you want --any ?)\n') | 904 ui.status(_('(%i troubled changesets, do you want --any ?)\n') |
905 % len(troubled)) | 905 % len(troubled)) |
906 return 2 | 906 return 2 |
907 else: | 907 else: |
908 ui.write_err(_('no troubled changeset\n')) | 908 ui.write_err(_('no troubled changesets\n')) |
909 return 1 | 909 return 1 |
910 | 910 |
911 while tr is not None: | 911 while tr is not None: |
912 result = _evolveany(ui, repo, tr, dryrunopt) | 912 result = _evolveany(ui, repo, tr, dryrunopt) |
913 if not allopt: | 913 if not allopt: |