[PATCH 2 of 2 pushrebase-ext] pushrebase: add testedwith for 3.4

Gregory Szorc gregory.szorc at gmail.com
Wed Jul 1 15:26:08 CDT 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1434152211 25200
#      Fri Jun 12 16:36:51 2015 -0700
# Node ID 1c1b508eabcb0cad45093e76292e4d38a46bf872
# Parent  681ee61e7c78a414e840405d06841ab6f96c92ac
pushrebase: add testedwith for 3.4

It is a best practice for Mercurial extensions to contain a "testedwith"
attribute to define which Mercurial versions they are compatible with.
The tests pass with Mercurial 3.4.1 (but not 3.3.3 - there are
references to missing symbols), so mark 3.4 as the only compatible
version.

diff --git a/pushrebase.py b/pushrebase.py
--- a/pushrebase.py
+++ b/pushrebase.py
@@ -15,16 +15,18 @@ except ImportError:
 from mercurial import bundle2, cmdutil, hg, scmutil, exchange, commands
 from mercurial import util, error, discovery, changegroup, context, revset
 from mercurial import obsolete, pushkey, phases
 from mercurial.extensions import wrapcommand, wrapfunction
 from mercurial.bundlerepo import bundlerepository
 from mercurial.node import nullid, hex, bin
 from mercurial.i18n import _
 
+testedwith = '3.4'
+
 cmdtable = {}
 command = cmdutil.command(cmdtable)
 
 rebaseparttype = 'b2x:rebase'
 commonheadsparttype = 'b2x:commonheads'
 
 experimental = 'experimental'
 configonto = 'server-rebase-onto'


More information about the Mercurial-devel mailing list