Submitter | Siddharth Agarwal |
---|---|
Date | April 2, 2013, 7:36 p.m. |
Message ID | <808296ac211eca66234a.1364931394@sid0x220> |
Download | mbox | patch |
Permalink | /patch/1241/ |
State | Superseded |
Commit | 6de8cd5c719abbf085b876e38cb22c9c52c3ec0a |
Headers | show |
Comments
Patch
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -686,8 +686,7 @@ def addremove(repo, pats=[], opts={}, dr if repo.ui.verbose or not m.exact(abs): rel = m.rel(abs) repo.ui.status(_('adding %s\n') % ((pats and rel) or abs)) - elif (dstate != 'r' and (not st or - (stat.S_ISDIR(st.st_mode) and not stat.S_ISLNK(st.st_mode)))): + elif dstate != 'r' and not st: deleted.append(abs) if repo.ui.verbose or not m.exact(abs): rel = m.rel(abs)