##// END OF EJS Templates
Fix addremove for symlinks to non-existent files
Giorgos Keramidas -
r4136:eb5d4fec default
parent child Browse files
Show More
@@ -185,7 +185,8 b' def addremove(repo, pats=[], opts={}, wl'
185 185 mapping[abs] = rel, exact
186 186 if repo.ui.verbose or not exact:
187 187 repo.ui.status(_('adding %s\n') % ((pats and rel) or abs))
188 if repo.dirstate.state(abs) != 'r' and not os.path.exists(rel):
188 islink = os.path.islink(rel)
189 if repo.dirstate.state(abs) != 'r' and not islink and not os.path.exists(rel):
189 190 remove.append(abs)
190 191 mapping[abs] = rel, exact
191 192 if repo.ui.verbose or not exact:
General Comments 0
You need to be logged in to leave comments. Login now