mercurial/destutil.py
changeset 28233 9da2283d0c56
parent 28189 fac3a24be50e
child 28234 2c29f157463e
equal deleted inserted replaced
28232:829d369fc5a8 28233:9da2283d0c56
   358     currentbranch = repo.dirstate.branch()
   358     currentbranch = repo.dirstate.branch()
   359     heads = repo.branchheads(currentbranch)
   359     heads = repo.branchheads(currentbranch)
   360     l = len(heads)
   360     l = len(heads)
   361     if repo.revs('%ln and parents()', heads):
   361     if repo.revs('%ln and parents()', heads):
   362         # we are on a head
   362         # we are on a head
   363         heads = repo.revs('%ln - parents()', heads)
   363         otherheads = repo.revs('%ln - parents()', heads)
   364         if heads and l != len(heads):
   364         if otherheads and l != len(otherheads):
   365             ui.status(_('%i other heads for branch "%s"\n') %
   365             ui.status(_('%i other heads for branch "%s"\n') %
   366                       (len(heads), currentbranch))
   366                       (len(otherheads), currentbranch))
   367 
   367 
   368 def statusotherdests(ui, repo):
   368 def statusotherdests(ui, repo):
   369     """Print message about other head"""
   369     """Print message about other head"""
   370     # XXX we should probably include a hint:
   370     # XXX we should probably include a hint:
   371     # - about what to do
   371     # - about what to do