diff mercurial/commands.py @ 10515:98bc3e195720 stable

identify: don't include unknown in status
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 19 Feb 2010 20:34:23 -0500
parents b3311e26f94f
children 75361931884d
line wrap: on
line diff
--- 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 "")]