diff hgext/shelve.py @ 42529:5f2f6912c9e6

states: moved cmdutil.unfinishedstates to state.py This moves `cmdutil.unfinishedstates`, `checkunfinished()`,`clearunfinished()` to `state.py`. the already existing users of this module are updated accordingly. Test results remain unchanged. Differential Revision: https://phab.mercurial-scm.org/D6484
author Taapas Agrawal <taapas2897@gmail.com>
date Sat, 08 Jun 2019 23:43:53 +0530
parents 9c7f58180878
children dc3fdd1b5af4
line wrap: on
line diff
--- a/hgext/shelve.py	Mon Jun 24 16:01:22 2019 -0700
+++ b/hgext/shelve.py	Sat Jun 08 23:43:53 2019 +0530
@@ -48,6 +48,7 @@
     registrar,
     repair,
     scmutil,
+    state as statemod,
     templatefilters,
     util,
     vfs as vfsmod,
@@ -1139,9 +1140,10 @@
         return createcmd(ui, repo, pats, opts)
 
 def extsetup(ui):
-    cmdutil.unfinishedstates.append(
+    statemod.unfinishedstates.append(
         [shelvedstate._filename, False, False,
          _('unshelve already in progress'),
          _("use 'hg unshelve --continue' or 'hg unshelve --abort'")])
     cmdutil.afterresolvedstates.append(
         [shelvedstate._filename, _('hg unshelve --continue')])
+