mercurial/commands.py
branchstable
changeset 10515 98bc3e195720
parent 10505 b3311e26f94f
child 10520 75361931884d
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]),