##// END OF EJS Templates
tags: no need to check for valid nodes...
Idan Kamara -
r13893:1aea8667 default
parent child Browse files
Show More
@@ -4061,19 +4061,16 b' def tags(ui, repo):'
4061 ui.write("%s\n" % t)
4061 ui.write("%s\n" % t)
4062 continue
4062 continue
4063
4063
4064 try:
4064 hn = hexfunc(n)
4065 hn = hexfunc(n)
4065 r = "%5d:%s" % (repo.changelog.rev(n), hn)
4066 r = "%5d:%s" % (repo.changelog.rev(n), hn)
4066 spaces = " " * (30 - encoding.colwidth(t))
4067 except error.LookupError:
4067
4068 r = " ?:%s" % hn
4068 if ui.verbose:
4069 else:
4069 if repo.tagtype(t) == 'local':
4070 spaces = " " * (30 - encoding.colwidth(t))
4070 tagtype = " local"
4071 if ui.verbose:
4071 else:
4072 if repo.tagtype(t) == 'local':
4072 tagtype = ""
4073 tagtype = " local"
4073 ui.write("%s%s %s%s\n" % (t, spaces, r, tagtype))
4074 else:
4075 tagtype = ""
4076 ui.write("%s%s %s%s\n" % (t, spaces, r, tagtype))
4077
4074
4078 def tip(ui, repo, **opts):
4075 def tip(ui, repo, **opts):
4079 """show the tip revision
4076 """show the tip revision
General Comments 0
You need to be logged in to leave comments. Login now