Mercurial > evolve
comparison hgext/evolve.py @ 1044:c878deb2fd73
evolve: attempt to clarify the documentation around --all and --any
This have been confusing to people. We try to be a bit more verbose in the
evolve help.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 12 Jun 2014 14:41:13 -0700 |
parents | 6a7d34010f8f |
children | b346d7a3d89e |
comparison
equal
deleted
inserted
replaced
1043:6a7d34010f8f | 1044:c878deb2fd73 |
---|---|
1149 ui.write(' mean length: %9i\n' % mean) | 1149 ui.write(' mean length: %9i\n' % mean) |
1150 | 1150 |
1151 @command('^evolve|stabilize|solve', | 1151 @command('^evolve|stabilize|solve', |
1152 [('n', 'dry-run', False, | 1152 [('n', 'dry-run', False, |
1153 'do not perform actions, just print what would be done'), | 1153 'do not perform actions, just print what would be done'), |
1154 ('A', 'any', False, 'evolve any troubled changeset'), | 1154 ('A', 'any', False, 'also consider troubled changesets unrelated to current working directory'), |
1155 ('a', 'all', False, 'evolve all troubled changesets'), | 1155 ('a', 'all', False, 'evolve all troubled changesets (implies any)'), |
1156 ('c', 'continue', False, 'continue an interrupted evolution'), | 1156 ('c', 'continue', False, 'continue an interrupted evolution'), |
1157 ] + mergetoolopts, | 1157 ] + mergetoolopts, |
1158 _('[OPTIONS]...')) | 1158 _('[OPTIONS]...')) |
1159 def evolve(ui, repo, **opts): | 1159 def evolve(ui, repo, **opts): |
1160 """Solve trouble in your repository | 1160 """Solve trouble in your repository |
1163 - create proper diffs from bumped changesets, | 1163 - create proper diffs from bumped changesets, |
1164 - merge divergent changesets, | 1164 - merge divergent changesets, |
1165 - update to a successor if the working directory parent is | 1165 - update to a successor if the working directory parent is |
1166 obsolete | 1166 obsolete |
1167 | 1167 |
1168 By default, takes the first troubled changeset that looks relevant. | 1168 By default a single changeset is evolved for each invocation and only |
1169 | 1169 troubles changesets that would evolve as a descendant of the current |
1170 (The logic is still a bit fuzzy) | 1170 working directory will be considered. See --all and --any options to change |
1171 this behavior. | |
1171 | 1172 |
1172 - For unstable, this means taking the first which could be rebased as a | 1173 - For unstable, this means taking the first which could be rebased as a |
1173 child of the working directory parent revision or one of its descendants | 1174 child of the working directory parent revision or one of its descendants |
1174 and rebasing it. | 1175 and rebasing it. |
1175 | 1176 |