Show More
@@ -1145,23 +1145,6 def between(repo, old, new, keep): | |||||
1145 | hint=_('see "hg help phases" for details')) |
|
1145 | hint=_('see "hg help phases" for details')) | |
1146 | return [c.node() for c in ctxs] |
|
1146 | return [c.node() for c in ctxs] | |
1147 |
|
1147 | |||
1148 | def makedesc(repo, action, rev): |
|
|||
1149 | """build a initial action line for a ctx |
|
|||
1150 |
|
||||
1151 | line are in the form: |
|
|||
1152 |
|
||||
1153 | <action> <hash> <rev> <summary> |
|
|||
1154 | """ |
|
|||
1155 | ctx = repo[rev] |
|
|||
1156 | summary = '' |
|
|||
1157 | if ctx.description(): |
|
|||
1158 | summary = ctx.description().splitlines()[0] |
|
|||
1159 | line = '%s %s %d %s' % (action, ctx, ctx.rev(), summary) |
|
|||
1160 | # trim to 80 columns so it's not stupidly wide in my editor |
|
|||
1161 | maxlen = repo.ui.configint('histedit', 'linelen', default=80) |
|
|||
1162 | maxlen = max(maxlen, 22) # avoid truncating hash |
|
|||
1163 | return util.ellipsis(line, maxlen) |
|
|||
1164 |
|
||||
1165 | def ruleeditor(repo, ui, actions, editcomment=""): |
|
1148 | def ruleeditor(repo, ui, actions, editcomment=""): | |
1166 | """open an editor to edit rules |
|
1149 | """open an editor to edit rules | |
1167 |
|
1150 |
General Comments 0
You need to be logged in to leave comments.
Login now