Patchwork [3,of,5,v2] histedit: add doctext for addhisteditaction verbs

login
register
mail settings
Submitter timeless@mozdev.org
Date Dec. 23, 2015, 10:43 p.m.
Message ID <748533d83707f54a2d71.1450910592@waste.org>
Download mbox | patch
Permalink /patch/12332/
State Changes Requested
Delegated to: Augie Fackler
Headers show

Comments

timeless@mozdev.org - Dec. 23, 2015, 10:43 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1450905588 0
#      Wed Dec 23 21:19:48 2015 +0000
# Node ID 748533d83707f54a2d71026e4d54d428f38806e9
# Parent  0de3e8717757ed1d7809dce4a03111602095674e
histedit: add doctext for addhisteditaction verbs

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -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')