# HG changeset patch # User Matt Mackall # Date 1256057845 18000 # Node ID d75a309a24b1a76b7ccf45a13180f04b775cd557 # Parent fafd653134d0d1d6371bf0a8e4f9c0485414dfb9 summary: add empty repository and no revision checked out hints diff -r fafd653134d0 -r d75a309a24b1 mercurial/commands.py --- a/mercurial/commands.py Mon Oct 19 23:53:25 2009 -0500 +++ b/mercurial/commands.py Tue Oct 20 11:57:25 2009 -0500 @@ -2891,8 +2891,14 @@ for p in parents: t = ' '.join([t for t in tags if tags[t] == p.node()]) + if p.rev() == -1: + if not len(repo): + t += _(' (empty repository)') + else: + t += _(' (no revision checked out)') ui.write(_('parent: %d:%s %s\n') % (p.rev(), str(p), t)) - ui.status(' ' + p.description().splitlines()[0].strip() + '\n') + if p.description(): + ui.status(' ' + p.description().splitlines()[0].strip() + '\n') branch = ctx.branch() bheads = repo.branchheads(branch)