Commits

Tobias Mueller  committed 2c0d247

hg: added support for indicating modified files

  • Participants
  • Parent commits 95cd6b3

Comments (0)

Files changed (1)

         result_set_branch(result, "default");
     }
 
+    if (context->options->show_modified) {
+        int status = system("hg summary | grep commit | grep modified > /dev/null");
+        if (WEXITSTATUS(status) == 0)       /* files modified */
+            result->modified = 1;
+    }
+
+
     update_nodeid(context, result);
 
     return result;