##// END OF EJS Templates
debugnamecomplete: use new name api...
Sean Farley -
r23763:7ad155e1 default
parent child Browse files
Show More
@@ -2352,8 +2352,11 b' def debugnamecomplete(ui, repo, *args):'
2352 '''complete "names" - tags, open branch names, bookmark names'''
2352 '''complete "names" - tags, open branch names, bookmark names'''
2353
2353
2354 names = set()
2354 names = set()
2355 names.update(t[0] for t in repo.tagslist())
2355 # since we previously only listed open branches, we will handle that
2356 names.update(repo._bookmarks.keys())
2356 # specially (after this for loop)
2357 for name, ns in repo.names.iteritems():
2358 if name != 'branches':
2359 names.update(ns.listnames(repo))
2357 names.update(tag for (tag, heads, tip, closed)
2360 names.update(tag for (tag, heads, tip, closed)
2358 in repo.branchmap().iterbranches() if not closed)
2361 in repo.branchmap().iterbranches() if not closed)
2359 completions = set()
2362 completions = set()
General Comments 0
You need to be logged in to leave comments. Login now