Submitter | Boris Feld |
---|---|
Date | Oct. 4, 2017, 1:54 p.m. |
Message ID | <a1d86c040bd28d7f96e1.1507125246@FB> |
Download | mbox | patch |
Permalink | /patch/24474/ |
State | Accepted |
Headers | show |
Comments
On Wed, 04 Oct 2017 15:54:06 +0200, Boris Feld wrote: > # HG changeset patch > # User Boris Feld <boris.feld@octobus.net> > # Date 1498786957 -7200 > # Fri Jun 30 03:42:37 2017 +0200 > # Node ID a1d86c040bd28d7f96e107d55e7a0cdda2bd63ec > # Parent 2fd06499dc8e6a5a784b1334b925c289d7b54e4e > # EXP-Topic config.register.histedit > configitems: register the 'histedit.defaultrev' config Queued, thanks.
Patch
diff -r 2fd06499dc8e -r a1d86c040bd2 hgext/histedit.py --- a/hgext/histedit.py Thu Aug 24 18:40:30 2017 +0200 +++ b/hgext/histedit.py Fri Jun 30 03:42:37 2017 +0200 @@ -188,6 +188,7 @@ from mercurial import ( bundle2, cmdutil, + configitems, context, copies, destutil, @@ -212,6 +213,12 @@ cmdtable = {} command = registrar.command(cmdtable) +configtable = {} +configitem = registrar.configitem(configtable) +configitem('histedit', 'defaultrev', + default=configitems.dynamicdefault, +) + # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should # be specifying the version(s) of Mercurial they are tested with, or