mercurial/filemerge.py
branchstable
changeset 12008 fad5ed0ff997
parent 11149 d3c1eddfdbcf
child 12010 ce818cf215dc
child 12046 8e7960feb139
equal deleted inserted replaced
12005:c6b1be675d3c 12008:fad5ed0ff997
   136             return False
   136             return False
   137 
   137 
   138     if not fco.cmp(fcd.data()): # files identical?
   138     if not fco.cmp(fcd.data()): # files identical?
   139         return None
   139         return None
   140 
   140 
   141     if fca == fco: # backwards, use working dir parent as ancestor
       
   142         fca = fcd.parents()[0]
       
   143 
       
   144     ui = repo.ui
   141     ui = repo.ui
   145     fd = fcd.path()
   142     fd = fcd.path()
   146     binary = isbin(fcd) or isbin(fco) or isbin(fca)
   143     binary = isbin(fcd) or isbin(fco) or isbin(fca)
   147     symlink = 'l' in fcd.flags() + fco.flags()
   144     symlink = 'l' in fcd.flags() + fco.flags()
   148     tool, toolpath = _picktool(repo, ui, fd, binary, symlink)
   145     tool, toolpath = _picktool(repo, ui, fd, binary, symlink)