##// END OF EJS Templates
scmutil.addremove: remove redundant directory and symlink checks...
Siddharth Agarwal -
r18862:6de8cd5c default
parent child Browse files
Show More
@@ -686,8 +686,7 b' def addremove(repo, pats=[], opts={}, dr'
686 if repo.ui.verbose or not m.exact(abs):
686 if repo.ui.verbose or not m.exact(abs):
687 rel = m.rel(abs)
687 rel = m.rel(abs)
688 repo.ui.status(_('adding %s\n') % ((pats and rel) or abs))
688 repo.ui.status(_('adding %s\n') % ((pats and rel) or abs))
689 elif (dstate != 'r' and (not st or
689 elif dstate != 'r' and not st:
690 (stat.S_ISDIR(st.st_mode) and not stat.S_ISLNK(st.st_mode)))):
691 deleted.append(abs)
690 deleted.append(abs)
692 if repo.ui.verbose or not m.exact(abs):
691 if repo.ui.verbose or not m.exact(abs):
693 rel = m.rel(abs)
692 rel = m.rel(abs)
General Comments 0
You need to be logged in to leave comments. Login now