[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Feature request - SVN command to clean a working copy of all unversioned and ignored files and directories

From: Simon Dean <Simon.Dean_at_moneysupermarket.com>
Date: Fri, 9 Mar 2012 15:03:18 +0000

> From: Giulio Troccoli [mailto:giulio.troccoli_at_mediatelgroup.co.uk]
>
> Why would the CI implement a different solution for each VCS? Those, I
> understand, are files created during the build process, they have got nothing
> to do with SVN or any other VCS. And it's not a SVN specific implementation
> as, again, the files were not created by SVN so they've got nothing to do with
> it.
>
> From Subversion's point of view the the WC is absolutely fine. The
> unversioned files are ignore and there are no missing files (and if there are a
> simple svn up will restore them)
>
> But maybe I'm missing something?

A CI implementation would have to implement it specifically each VCS as it would have to call the VCS to found out what files/directories are unversioned and ignored.

Interestingly TortoiseSVN also implements the same feature (as Bob Archer highlights). This is a good example of the same feature being used for non-CI purposes. Unfortunately the TortoiseSVN implementation is both Windows specific and not available from the command line.

It is helpful though to see how TortoiseSVN describes the feature (quoted from http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-cleanup.html)

        Delete unversioned files and folders, Delete ignored files and folders
        ======================================================================

        This is a fast and easy way to remove all generated files in your working copy. All files and folders that are not versioned are moved to the trash bin.

        Note: you can also do the same from the TortoiseSVN $B"*(B Revert dialog. There you also get a list of all the unversioned files and folders to select for removal.

-----------------------------------------------------------------------------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is intended for the addressee only. Any unauthorised use, dissemination of the information, or copying of this message is prohibited. If you are not the addressee, please notify the sender immediately by return e-mail and delete this message. Although this e-mail and any attachments are believed to be free of any virus, or other defect which might affect any computer or system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Moneysupermarket.com Financial Group Limited for any loss or damage from receipt or use thereof.
The views expressed are of the individual, and do not necessarily reflect the views of Moneysupermarket.com Financial Group Limited.
Moneysupermarket.com Limited is an appointed representative of Moneysupermarket.com Financial Group Limited, which is authorised and regulated by the Financial Services Authority (FSA FRN 303190).
Moneysupermarket.com Financial Group Limited, registered in England No. 3157344.
Registered Office: Moneysupermarket House, St. David$B!G(Bs Park, Ewloe, CH5 3UZ. Telephone 01244 665700.
Received on 2012-03-09 16:05:51 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.