eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py

branch
eric7
changeset 8620
84f7f7867b5f
parent 8618
356a2f1b04b0
child 8881
54e42bc2437a
--- a/eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py	Mon Sep 20 07:29:27 2021 +0200
+++ b/eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusMonitorThread.py	Mon Sep 20 19:47:18 2021 +0200
@@ -42,6 +42,8 @@
             <li>"R" path was deleted and then re-added</li>
             <li>"U" path needs an update</li>
             <li>"Z" path contains a conflict</li>
+            <li>"?" path is not tracked</li>
+            <li>"!" path is missing</li>
             <li>" " path is back at normal</li>
         </ul>
         
@@ -59,6 +61,8 @@
         args = self.vcs.initCommand("status")
         args.append('--noninteractive')
         args.append('--all')
+        if self.vcs.hasSubrepositories():
+            args.append("--subrepos")
         
         output, error = self.__client.runcommand(args)
         
@@ -69,7 +73,7 @@
         for line in output.splitlines():
             if not line.startswith("  "):
                 flag, name = line.split(" ", 1)
-                if flag in "AMR":
+                if flag in "AMR?!":
                     if flag == "R":
                         status = "O"
                     else:

eric ide

mercurial