[PATCH 3 of 5] histedit: add doctext for addhisteditaction verbs
timeless
timeless at mozdev.org
Wed Dec 23 03:10:01 CST 2015
# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1450850512 0
# Wed Dec 23 06:01:52 2015 +0000
# Node ID b12320611f96ae46d8b7faa6436a2480792fdef1
# Parent 43cbe5d791b17d07857ec3791bb7611e737ec6c4
histedit: add doctext for addhisteditaction verbs
diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -605,6 +605,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:
@@ -615,6 +616,7 @@
@addhisteditaction(['edit', 'e'])
class edit(histeditaction):
+ """use commit, but stop for amending"""
def run(self):
repo = self.repo
rulectx = repo[self.node]
@@ -630,6 +632,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]
@@ -723,6 +726,7 @@
return repo[n], replacements
class base(histeditaction):
+ """checkout changeset and apply further changesets from there"""
def constraints(self):
return set([_constraints.forceother])
@@ -754,6 +758,7 @@
@addhisteditaction(["roll", "r"])
class rollup(fold):
+ """like fold, but discard this commit's description"""
def mergedescs(self):
return False
@@ -762,12 +767,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')
More information about the Mercurial-devel
mailing list