##// END OF EJS Templates
destutil: remove redundant examination...
FUJIWARA Katsunori -
r28234:2c29f157 default
parent child Browse files
Show More
@@ -357,11 +357,10 b' def _statusotherbook(ui, repo):'
357 def _statusotherbranchheads(ui, repo):
357 def _statusotherbranchheads(ui, repo):
358 currentbranch = repo.dirstate.branch()
358 currentbranch = repo.dirstate.branch()
359 heads = repo.branchheads(currentbranch)
359 heads = repo.branchheads(currentbranch)
360 l = len(heads)
361 if repo.revs('%ln and parents()', heads):
360 if repo.revs('%ln and parents()', heads):
362 # we are on a head
361 # we are on a head
363 otherheads = repo.revs('%ln - parents()', heads)
362 otherheads = repo.revs('%ln - parents()', heads)
364 if otherheads and l != len(otherheads):
363 if otherheads:
365 ui.status(_('%i other heads for branch "%s"\n') %
364 ui.status(_('%i other heads for branch "%s"\n') %
366 (len(otherheads), currentbranch))
365 (len(otherheads), currentbranch))
367
366
General Comments 0
You need to be logged in to leave comments. Login now