equal
deleted
inserted
replaced
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]), |