New submission from Eric V. Smith: See: http://mail.python.org/pipermail/python-dev/2013-June/127068.html
The find command: find $(srcdir) '(' -name '*.fdc' -o -name '*~' \ -o -name '[@,#]*' -o -name '*.old' \ -o -name '*.orig' -o -name '*.rej' \ -o -name '*.bak' ')' \ -exec rm -f {} ';' will walk into .hg (and other dot directories) and delete files there. The particular problem noted in the email was a filename beginning with '@'. Some suggestions are to change it to: find \( -type d -name .hg -prune \) -o ... or find $(srcdir)/[a-zA-Z]* ... Other suggestions are included in the thread starting at the above link. These include deleting the find command, or using "hg purge". I think that we have enough history of using and suggesting "make distclean" that we should just fix up the find command to do what it does now, but not recurse into any dot directories (.hg, .svn, .git, etc.). ---------- components: Build messages: 191928 nosy: eric.smith priority: normal severity: normal status: open title: "make distclean" deletes files under .hg directory type: behavior versions: Python 2.7, Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18312> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com