On Thu, Aug 25, 2011 at 12:38 PM, Henry Vermaak <[email protected]> wrote: > On 25/08/11 16:23, Florian Klaempfl wrote: >> >> Am 25.08.2011 17:19, schrieb Andreas Schneider: >>> >>> On 25.08.2011 17:09, Graeme Geldenhuys wrote: >>>> >>>> On 08/25/2011 05:06 PM, Andreas Schneider wrote: >>>>> >>>>> Although slightly off-topic, but SVN's revert is not really clean. It >>>>> reverts files it knows, but it doesn't remove unknown files. I'm not >>>>> aware of an SVN equivalent of Mercurial's purge (for example). >>>>> So yes, a clean checkout CAN make sense sometimes. >>>> >>>> svn revert . >>>> svn export<target_dir> >>> >>> Still not the same. Export would also remove .svn metadata, which is not >>> what I (would) want. What I want is to remove all files that aren't >>> tracked by SVN - i.e. get the working copy to be EXACTLY what a fresh >>> checkout would be; no more, no less. >> >> If you don't use TortoiseSVN I guess it's shouldn't be to hard to feed >> sed with svn st output to remove untracked files. Why should svn do this >> if a sed one liner can do this ;)? > > Indeed. Just remember to use svn st --no-ignore and catch both "I" and "?". > Or use --xml and parse that. I'm sure I've got a script somewhere that > does this. > > Henry
I usually file bugs if 'make distclean' leaves files behind ;-) Otherwise: http://carlo-notes.blogspot.com/2011/01/throw-out-trash-clean-up-subversion.html -Flávio -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
