Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
10514:1426b4807fc8 | 10515:98bc3e195720 |
---|---|
1766 elif not rev: | 1766 elif not rev: |
1767 ctx = repo[None] | 1767 ctx = repo[None] |
1768 parents = ctx.parents() | 1768 parents = ctx.parents() |
1769 changed = False | 1769 changed = False |
1770 if default or id or num: | 1770 if default or id or num: |
1771 changed = ctx.files() + ctx.deleted() | 1771 changed = util.any(repo.status()) |
1772 if default or id: | 1772 if default or id: |
1773 output = ["%s%s" % ('+'.join([hexfunc(p.node()) for p in parents]), | 1773 output = ["%s%s" % ('+'.join([hexfunc(p.node()) for p in parents]), |
1774 (changed) and "+" or "")] | 1774 (changed) and "+" or "")] |
1775 if num: | 1775 if num: |
1776 output.append("%s%s" % ('+'.join([str(p.rev()) for p in parents]), | 1776 output.append("%s%s" % ('+'.join([str(p.rev()) for p in parents]), |