If svn:ignore is set to '*' at the top level project, then ant precommit won't complain about dirty files that exist there, such as patch files, notes to myself, and whatever else. The wildcard should not conflict with build.xml or the other few checked-in files and folders being in source control -- it should have no impact. Likewise, I would also find it convenient to set svn:ignore to '*' on dev-tools/idea/.idea/ I recognize the point of dirty file checking in ant precommit but I would prefer it be reigned in a bit.
~ David On Nov 26, 2012, at 2:38 PM, sarowe [via Lucene] wrote: I guess there are two classes of things here: new non-ignored non-svn-controlled files; and modifications to svn-controlled files. My point about svn:ignore was that we could use it to handle the non-ignored non-svn-controlled files case. I guess you're talking about the svn-controlled modified files case? And the fact that svn:ignore=* doesn't cover this case? If so, okay, that makes sense. If not, can you increase your word count a little and help me understand? Steve On Nov 26, 2012, at 2:25 PM, David Smiley (@MITRE.org) <[hidden email]<x-msg://155/user/SendEmail.jtp?type=node&node=4022433&i=0>> wrote: > AFAIK if you set svn:ignore * then it won't ignore files and directories that > are in source control. > > ~ David > > On Nov 26, 2012, at 1:41 PM, sarowe [via Lucene] wrote: > >> I've always put patches up one level from checked out dirs: svn diff > >> ../PROJECT-NNNN.patch; patch -p0 < ../PROJECT-NNNN.patch. >> >> For stuff that should be ignored by everybody (or that wouldn't cause >> trouble for others), we could add them to the svn:ignore list for the >> directory they're in? >> >> Alternatively, I'd support a set of individually-settable wildcard >> exceptions to the dirty-is-bad rule, maybe via a sysprop? >> >> Steve >> >> On Nov 26, 2012, at 1:30 PM, "Smiley, David W." <<a >> href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=0" >> target="_top" rel="nofollow" link="external">[hidden email]> wrote: >> >> > How about doing the dirty checks on sub-directories only? This way I can >> > keep the random .patch files & miscellany around in the root. >> > >> > The IDE files are a special circumstance for my setup because I use >> > symbolic links to the IDE files in dev-tools so that I can easily see how >> > my IDE setup is different than the one in source control, and more easily >> > commit desirable changes. I might stop doing this if this were the only >> > thing in my way from "ant precommit". >> > >> > FWIW my solution has been to modify the build script to not do the dirty >> > check :-) >> > >> > ~ David >> > >> > On Nov 26, 2012, at 11:09 AM, Michael McCandless wrote: >> > >> >> I think the idea is to catch files you forgot to svn add. >> >> >> >> For IDE files, you should just svn ignore them? >> >> >> >> Mike McCandless >> >> >> >> http://blog.mikemccandless.com<http://blog.mikemccandless.com/> >> >> >> >> On Mon, Nov 26, 2012 at 9:46 AM, David Smiley (@MITRE.org) >> >> <<a >> >> href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=1" >> >> target="_top" rel="nofollow" link="external">[hidden email]> wrote: >> >>> "ant precommit" will check if the source tree is "dirty" (i.e. contains >> >>> files >> >>> not in source control) and stop with a failure if so. I find that rather >> >>> annoying since I've usually got a variety of .patch files and IDE config >> >>> changes. What is the rationale behind this check? How do people usually >> >>> deal with it? Perhaps if I do my real development on another checkout >> >>> (git >> >>> based), I could then patch on the svn one for the commit. Pretty >> >>> annoying >> >>> though, and the 4x port is yet another step. There sure is a lot of >> >>> burden >> >>> to getting commits in. I no longer care to improve little javadoc and >> >>> typo >> >>> stuff. >> >>> >> >>> ~ David >> >>> >> >>> >> >>> >> >>> ----- >> >>> Author: >> >>> http://www.packtpub.com/apache-solr-3-enterprise-search-server/book >> >>> -- >> >>> View this message in context: >> >>> http://lucene.472066.n3.nabble.com/ant-precommit-annoyed-with-checkout-is-dirty-tp4022362.html >> >>> Sent from the Lucene - Java Developer mailing list archive at >> >>> Nabble.com<http://Nabble.com>. >> >>> >> >>> --------------------------------------------------------------------- >> >>> To unsubscribe, e-mail: <a >> >>> href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=2" >> >>> target="_top" rel="nofollow" link="external"> [hidden email] >> >>> For additional commands, e-mail: <a >> >>> href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=3" >> >>> target="_top" rel="nofollow" link="external"> [hidden email] >> >>> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: <a >> >> href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=4" >> >> target="_top" rel="nofollow" link="external"> [hidden email] >> >> For additional commands, e-mail: <a >> >> href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=5" >> >> target="_top" rel="nofollow" link="external"> [hidden email] >> >> >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: <a >> > href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=6" >> > target="_top" rel="nofollow" link="external"> [hidden email] >> > For additional commands, e-mail: <a >> > href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=7" >> > target="_top" rel="nofollow" link="external"> [hidden email] >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: <a >> href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=8" >> target="_top" rel="nofollow" link="external"> [hidden email] >> For additional commands, e-mail: <a >> href="x-msg://149/user/SendEmail.jtp?type=node&node=4022419&i=9" >> target="_top" rel="nofollow" link="external"> [hidden email] >> >> >> >> If you reply to this email, your message will be added to the discussion >> below: >> http://lucene.472066.n3.nabble.com/ant-precommit-annoyed-with-checkout-is-dirty-tp4022362p4022419.html >> To unsubscribe from ant precommit; annoyed with "checkout is dirty", click >> here. >> NAML > > Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book > > View this message in context: Re: ant precommit; annoyed with "checkout is > dirty" > Sent from the Lucene - Java Developer mailing list archive at > Nabble.com<http://Nabble.com>. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email]<x-msg://155/user/SendEmail.jtp?type=node&node=4022433&i=1> For additional commands, e-mail: [hidden email]<x-msg://155/user/SendEmail.jtp?type=node&node=4022433&i=2> ________________________________ If you reply to this email, your message will be added to the discussion below: http://lucene.472066.n3.nabble.com/ant-precommit-annoyed-with-checkout-is-dirty-tp4022362p4022433.html To unsubscribe from ant precommit; annoyed with "checkout is dirty", click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4022362&code=RFNNSUxFWUBtaXRyZS5vcmd8NDAyMjM2MnwxMDE2NDI2OTUw>. NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> ----- Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/ant-precommit-annoyed-with-checkout-is-dirty-tp4022362p4022438.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com.