Mercurial > hg
comparison mercurial/commands.py @ 16232:877aea86fb73
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 08 Mar 2012 15:59:33 -0600 |
parents | 7855c522a9cb ce292f1379ba |
children | 0d175ac527c1 |
comparison
equal
deleted
inserted
replaced
16229:5cb2693e1a60 | 16232:877aea86fb73 |
---|---|
2906 haveheads = set(h.branch() for h in heads) | 2906 haveheads = set(h.branch() for h in heads) |
2907 if branches - haveheads: | 2907 if branches - haveheads: |
2908 headless = ', '.join(b for b in branches - haveheads) | 2908 headless = ', '.join(b for b in branches - haveheads) |
2909 msg = _('no open branch heads found on branches %s') | 2909 msg = _('no open branch heads found on branches %s') |
2910 if opts.get('rev'): | 2910 if opts.get('rev'): |
2911 msg += _(' (started at %s)' % opts['rev']) | 2911 msg += _(' (started at %s)') % opts['rev'] |
2912 ui.warn((msg + '\n') % headless) | 2912 ui.warn((msg + '\n') % headless) |
2913 | 2913 |
2914 if not heads: | 2914 if not heads: |
2915 return 1 | 2915 return 1 |
2916 | 2916 |
2999 else: | 2999 else: |
3000 if name == 'shortlist': | 3000 if name == 'shortlist': |
3001 msg = _('use "hg help" for the full list of commands ' | 3001 msg = _('use "hg help" for the full list of commands ' |
3002 'or "hg -v" for details') | 3002 'or "hg -v" for details') |
3003 elif name and not full: | 3003 elif name and not full: |
3004 msg = _('use "hg help %s" to show the full help text' % name) | 3004 msg = _('use "hg help %s" to show the full help text') % name |
3005 elif aliases: | 3005 elif aliases: |
3006 msg = _('use "hg -v help%s" to show builtin aliases and ' | 3006 msg = _('use "hg -v help%s" to show builtin aliases and ' |
3007 'global options') % (name and " " + name or "") | 3007 'global options') % (name and " " + name or "") |
3008 else: | 3008 else: |
3009 msg = _('use "hg -v help %s" to show more info') % name | 3009 msg = _('use "hg -v help %s" to show more info') % name |
4282 if optupdate: | 4282 if optupdate: |
4283 movemarkfrom = repo['.'].node() | 4283 movemarkfrom = repo['.'].node() |
4284 try: | 4284 try: |
4285 ret = hg.update(repo, checkout) | 4285 ret = hg.update(repo, checkout) |
4286 except util.Abort, inst: | 4286 except util.Abort, inst: |
4287 ui.warn(_("not updating: %s\n" % str(inst))) | 4287 ui.warn(_("not updating: %s\n") % str(inst)) |
4288 return 0 | 4288 return 0 |
4289 if not ret and not checkout: | 4289 if not ret and not checkout: |
4290 if bookmarks.update(repo, [movemarkfrom], repo['.'].node()): | 4290 if bookmarks.update(repo, [movemarkfrom], repo['.'].node()): |
4291 ui.status(_("updating bookmark %s\n") % repo._bookmarkcurrent) | 4291 ui.status(_("updating bookmark %s\n") % repo._bookmarkcurrent) |
4292 return ret | 4292 return ret |