##// END OF EJS Templates
Make 'hg tags -q' only list tag names without revision numbers and hashes,...
Thomas Arendsen Hein -
r2035:107dc728 default
parent child Browse files
Show More
@@ -29,8 +29,8 b' shopt -s extglob'
29
29
30 _hg_tags()
30 _hg_tags()
31 {
31 {
32 local tags="$("$hg" tags 2>/dev/null |
32 local tags="$("$hg" tags -q 2>/dev/null)"
33 sed -e 's/[0-9]*:[a-f0-9]\{40\}$//; s/ *$//')"
33 local IFS=$'\n'
34 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$tags' -- "$cur"))
34 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$tags' -- "$cur"))
35 }
35 }
36
36
@@ -2691,7 +2691,10 b' def tags(ui, repo):'
2691 r = "%5d:%s" % (repo.changelog.rev(n), hex(n))
2691 r = "%5d:%s" % (repo.changelog.rev(n), hex(n))
2692 except KeyError:
2692 except KeyError:
2693 r = " ?:?"
2693 r = " ?:?"
2694 ui.write("%-30s %s\n" % (t, r))
2694 if ui.quiet:
2695 ui.write("%s\n" % t)
2696 else:
2697 ui.write("%-30s %s\n" % (t, r))
2695
2698
2696 def tip(ui, repo, **opts):
2699 def tip(ui, repo, **opts):
2697 """show the tip revision
2700 """show the tip revision
General Comments 0
You need to be logged in to leave comments. Login now