mercurial/destutil.py
changeset 29284 1c7167009936
parent 29043 cf7de4aeb86b
child 29964 40f845537dca
equal deleted inserted replaced
29283:14eee72c8d52 29284:1c7167009936
    93     This ignores closed branch heads.
    93     This ignores closed branch heads.
    94     """
    94     """
    95     wc = repo[None]
    95     wc = repo[None]
    96     movemark = node = None
    96     movemark = node = None
    97     currentbranch = wc.branch()
    97     currentbranch = wc.branch()
       
    98 
       
    99     if clean:
       
   100         currentbranch = repo['.'].branch()
       
   101 
    98     if currentbranch in repo.branchmap():
   102     if currentbranch in repo.branchmap():
    99         heads = repo.branchheads(currentbranch)
   103         heads = repo.branchheads(currentbranch)
   100         if heads:
   104         if heads:
   101             node = repo.revs('max(.::(%ln))', heads).first()
   105             node = repo.revs('max(.::(%ln))', heads).first()
   102         if bookmarks.isactivewdirparent(repo):
   106         if bookmarks.isactivewdirparent(repo):