diff hgext3rd/topic/stack.py @ 4429:e10ebc58926e

compat: remove old vocabulary change fallbacks Mercurial 4.4 (minimal hg version evolve currently supports) already uses the new names and in fact has deprecation warnings saying that 4.4 is the last version of Mercurial to support the old names.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 06 Mar 2019 16:56:25 +0800
parents 69fb9e41ce2b
children 5da1d162ad50
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py	Thu Mar 07 10:51:48 2019 +0100
+++ b/hgext3rd/topic/stack.py	Wed Mar 06 16:56:25 2019 +0800
@@ -5,7 +5,6 @@
 from mercurial.i18n import _
 from mercurial import (
     destutil,
-    context,
     error,
     node,
     phases,
@@ -20,14 +19,6 @@
 
 short = node.short
 
-# TODO: compat
-
-if not util.safehasattr(context.basectx, 'orphan'):
-    context.basectx.orphan = context.basectx.unstable
-
-if not util.safehasattr(context.basectx, 'isunstable'):
-    context.basectx.isunstable = context.basectx.troubled
-
 def parseusername(user):
     """parses the ctx user and returns the username without email ID if
     possible, otherwise returns the mail address from that"""