Skip to content

Commit 3e091a7

Browse files
committed
Remove leftover commented code and correct inline comments
1 parent b485a65 commit 3e091a7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mbed/mbed.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,6 @@ def gettags(rev=None):
823823
for tag in tags:
824824
if tag[1] == t:
825825
tags.remove(tag)
826-
#tags = {key:tag for key, tag in tags.items() if tag != t} # remove duplicate
827826
tags.append(t if rev else [m.group(1), t])
828827
return tags
829828

@@ -2179,7 +2178,7 @@ def list_(detailed=False, prefix='', p_path=None, ignore=False):
21792178
list_(detailed, nprefix, repo.path, ignore=ignore)
21802179

21812180

2182-
# Command status for cross-SCM status of repositories
2181+
# Command release for cross-SCM release tags of repositories
21832182
@subcommand('releases',
21842183
dict(name=['-a', '--all'], dest='detailed', action='store_true', help='Show revision hashes'),
21852184
dict(name=['-u', '--unstable'], dest='unstable', action='store_true', help='Show unstable releases well, e.g. release candidates, alphas, betas, etc'),
@@ -2200,10 +2199,10 @@ def releases_(detailed=False, unstable=False, recursive=False, prefix='', p_path
22002199
if re.match(regex_rels, tag[1]):
22012200
rels.append(tag[1] + " %s%s" % ('#'+tag[0] if detailed else "", " <- current" if tag[1] in revtags else ""))
22022201

2203-
# print header
2202+
# Print header
22042203
print "%s (%s)" % (prefix + (relpath(p_path, repo.path) if p_path else repo.name), ((repo.url+('#'+str(repo.rev)[:12] if repo.rev else '') if detailed else revstr) or 'no revision'))
22052204

2206-
# print list of tags
2205+
# Print list of tags
22072206
rprefix = (prefix[:-3] + ('| ' if prefix[-3] == '|' else ' ')) if recursive and prefix else ''
22082207
rprefix += '| ' if recursive and len(repo.libs)>1 else ' '
22092208
if len(rels):

0 commit comments

Comments
 (0)