hgext3rd/topic/stack.py
changeset 4429 e10ebc58926e
parent 4285 69fb9e41ce2b
child 4432 5da1d162ad50
--- 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"""