Comments
Patch
@@ -613,6 +613,7 @@
@addhisteditaction(['pick', 'p'])
class pick(histeditaction):
+ """use commit"""
def run(self):
rulectx = self.repo[self.node]
if rulectx.parents()[0].node() == self.state.parentctxnode:
@@ -623,6 +624,7 @@
@addhisteditaction(['edit', 'e'])
class edit(histeditaction):
+ """use commit, but stop for amending"""
def run(self):
repo = self.repo
rulectx = repo[self.node]
@@ -638,6 +640,7 @@
@addhisteditaction(['fold', 'f'])
class fold(histeditaction):
+ """use commit, but combine it with the one above"""
def continuedirty(self):
repo = self.repo
rulectx = repo[self.node]
@@ -731,6 +734,7 @@
return repo[n], replacements
class base(histeditaction):
+ """checkout changeset and apply further changesets from there"""
def constraints(self):
return set([_constraints.forceother])
@@ -762,6 +766,7 @@
@addhisteditaction(["roll", "r"])
class rollup(fold):
+ """like fold, but discard this commit's description"""
def mergedescs(self):
return False
@@ -770,12 +775,14 @@
@addhisteditaction(["drop", "d"])
class drop(histeditaction):
+ """remove commit from history"""
def run(self):
parentctx = self.repo[self.state.parentctxnode]
return parentctx, [(self.node, tuple())]
@addhisteditaction(["mess", "m"])
class message(histeditaction):
+ """edit commit message without changing commit content"""
def commiteditor(self):
return cmdutil.getcommiteditor(edit=True, editform='histedit.mess')