##// END OF EJS Templates
histedit: extract common summary code into method...
Sean Farley -
r29467:4c4232e5 default
parent child Browse files
Show More
@@ -1269,6 +1269,14 b' def _newhistedit(ui, repo, state, revs, '
1269 1269 'histedit')
1270 1270 state.backupfile = backupfile
1271 1271
1272 def _getsummary(ctx):
1273 # a common pattern is to extract the summary but default to the empty
1274 # string
1275 summary = ctx.description() or ''
1276 if summary:
1277 summary = summary.splitlines()[0]
1278 return summary
1279
1272 1280 def bootstrapcontinue(ui, state, opts):
1273 1281 repo = state.repo
1274 1282 if state.actions:
General Comments 0
You need to be logged in to leave comments. Login now