equal
deleted
inserted
replaced
6002 t += _(' (clean)') |
6002 t += _(' (clean)') |
6003 cleanworkdir = True |
6003 cleanworkdir = True |
6004 elif pnode not in bheads: |
6004 elif pnode not in bheads: |
6005 t += _(' (new branch head)') |
6005 t += _(' (new branch head)') |
6006 |
6006 |
|
6007 if parents: |
|
6008 pendingphase = max(p.phase() for p in parents) |
|
6009 else: |
|
6010 pendingphase = phases.public |
|
6011 |
|
6012 if pendingphase > phases.newcommitphase(ui): |
|
6013 t += ' (%s)' % phases.phasenames[pendingphase] |
|
6014 |
6007 if cleanworkdir: |
6015 if cleanworkdir: |
6008 # i18n: column positioning for "hg summary" |
6016 # i18n: column positioning for "hg summary" |
6009 ui.status(_('commit: %s\n') % t.strip()) |
6017 ui.status(_('commit: %s\n') % t.strip()) |
6010 else: |
6018 else: |
6011 # i18n: column positioning for "hg summary" |
6019 # i18n: column positioning for "hg summary" |
6032 t.append(_('%d draft') % draft) |
6040 t.append(_('%d draft') % draft) |
6033 secret = len(repo.revs('secret()')) |
6041 secret = len(repo.revs('secret()')) |
6034 if secret: |
6042 if secret: |
6035 t.append(_('%d secret') % secret) |
6043 t.append(_('%d secret') % secret) |
6036 |
6044 |
6037 if parents: |
|
6038 parentphase = max(p.phase() for p in parents) |
|
6039 else: |
|
6040 parentphase = phases.public |
|
6041 |
|
6042 if draft or secret: |
6045 if draft or secret: |
6043 ui.status(_('phases: %s (%s)\n') % (', '.join(t), |
6046 ui.status(_('phases: %s\n') % ', '.join(t)) |
6044 phases.phasenames[parentphase])) |
|
6045 else: |
|
6046 ui.note(_('phases: (%s)\n') % phases.phasenames[parentphase]) |
|
6047 |
6047 |
6048 cmdutil.summaryhooks(ui, repo) |
6048 cmdutil.summaryhooks(ui, repo) |
6049 |
6049 |
6050 if opts.get('remote'): |
6050 if opts.get('remote'): |
6051 needsincoming, needsoutgoing = True, True |
6051 needsincoming, needsoutgoing = True, True |