Mercurial > public > mercurial-scm > hg
comparison mercurial/filemerge.py @ 12008:fad5ed0ff997 stable
merge: move reverse-merge logic out of filemerge (issue2342)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 21 Aug 2010 10:41:29 -0500 |
parents | d3c1eddfdbcf |
children | ce818cf215dc 8e7960feb139 |
comparison
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) |