mercurial/destutil.py
changeset 48687 f8f2ecdde4b5
parent 46819 d4ba4d51f85f
child 48689 fbf7e383e961
equal deleted inserted replaced
48686:4507bc001365 48687:f8f2ecdde4b5
    77             # get the max revision for the given successors set,
    77             # get the max revision for the given successors set,
    78             # i.e. the 'tip' of a set
    78             # i.e. the 'tip' of a set
    79             node = repo.revs(b'max(%ln)', successors).first()
    79             node = repo.revs(b'max(%ln)', successors).first()
    80             if bookmarks.isactivewdirparent(repo):
    80             if bookmarks.isactivewdirparent(repo):
    81                 movemark = repo[b'.'].node()
    81                 movemark = repo[b'.'].node()
       
    82         else:
       
    83             # TODO: copy hg prune logic
       
    84             node = repo[b'.'].node()
    82     return node, movemark, None
    85     return node, movemark, None
    83 
    86 
    84 
    87 
    85 def _destupdatebook(repo, clean):
    88 def _destupdatebook(repo, clean):
    86     """decide on an update destination from active bookmark"""
    89     """decide on an update destination from active bookmark"""