identify: don't include unknown in status stable
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Fri, 19 Feb 2010 20:34:23 -0500
branchstable
changeset 10515 98bc3e195720
parent 10514 1426b4807fc8
child 10516 80a1161bc3b5
identify: don't include unknown in status
mercurial/commands.py
--- a/mercurial/commands.py	Fri Feb 19 16:50:47 2010 -0800
+++ b/mercurial/commands.py	Fri Feb 19 20:34:23 2010 -0500
@@ -1768,7 +1768,7 @@
         parents = ctx.parents()
         changed = False
         if default or id or num:
-            changed = ctx.files() + ctx.deleted()
+            changed = util.any(repo.status())
         if default or id:
             output = ["%s%s" % ('+'.join([hexfunc(p.node()) for p in parents]),
                                 (changed) and "+" or "")]