Re: Ignore every file except XX*

2021-07-22 Thread Daniel Sahlberg
Den ons 17 juni 2020 kl 20:22 skrev Daniel Shahaf : > > > > > At this point I'd rather wait for Daniel to answer my question and > > > > > clarify his problem statement. > > > > > > > > I rather suspect that XX* and YY* were just general examples, not > > > > concrete ones. > > > > > > So do I,

Re: Ignore every file except XX*

2020-06-17 Thread Daniel Shahaf
> > > > At this point I'd rather wait for Daniel to answer my question and > > > > clarify his problem statement. > > > > > > I rather suspect that XX* and YY* were just general examples, not > > > concrete ones. > > > > So do I, but the solution I posted is generalizable, as you know. > > >

Re: Ignore every file except XX*

2020-06-15 Thread Ryan Schmidt
On Jun 15, 2020, at 03:30, Daniel Sahlberg wrote: > I think a separate property that is evaluated at the same time as svn:ignore > is a lot easier to explain ("A file is ignored if the name satisfies one > pattern in the svn:ignore list and satisfies NO pattern in the 'reverse of >

Re: Ignore every file except XX*

2020-06-15 Thread Daniel Sahlberg
> > > > At this point I'd rather wait for Daniel to answer my question and > > > clarify his problem statement. > > > > I rather suspect that XX* and YY* were just general examples, not > > concrete ones. > > So do I, but the solution I posted is generalizable, as you know. > These were indeed

Re: Ignore every file except XX*

2020-06-13 Thread Daniel Shahaf
> > Care to move this over to dev@ with a patch? > > Will do, it might take a few days. I recommend to send dev@ the syntax you propose to implement before you actually implement it. Cheers, Daniel > Thanks to the other users for their suggestions but I don't think > they'll be general

Re: Ignore every file except XX*

2020-06-13 Thread Daniel Shahaf
Branko Čibej wrote on Sat, 13 Jun 2020 10:16 +00:00: > On 13.06.2020 12:09, Daniel Shahaf wrote: > > Branko Čibej wrote on Sat, 13 Jun 2020 09:51 +00:00: > >> On 13.06.2020 11:15, Daniel Shahaf wrote: > >>> Daniel Sahlberg wrote on Fri, 12 Jun 2020 21:14 +0200: > > Care to move this over to

Re: Ignore every file except XX*

2020-06-13 Thread Branko Čibej
On 13.06.2020 12:09, Daniel Shahaf wrote: > Branko Čibej wrote on Sat, 13 Jun 2020 09:51 +00:00: >> On 13.06.2020 11:15, Daniel Shahaf wrote: >>> Daniel Sahlberg wrote on Fri, 12 Jun 2020 21:14 +0200: > Care to move this over to dev@ with a patch? > Will do, it might take a few

Re: Ignore every file except XX*

2020-06-13 Thread Daniel Shahaf
Daniel Shahaf wrote on Sat, 13 Jun 2020 10:09 +00:00: > Branko Čibej wrote on Sat, 13 Jun 2020 09:51 +00:00: > > On 13.06.2020 11:15, Daniel Shahaf wrote: > > > Daniel Sahlberg wrote on Fri, 12 Jun 2020 21:14 +0200: > > >>> Care to move this over to dev@ with a patch? > > >>> > > >> Will do, it

Re: Ignore every file except XX*

2020-06-13 Thread Daniel Shahaf
Branko Čibej wrote on Sat, 13 Jun 2020 09:51 +00:00: > On 13.06.2020 11:15, Daniel Shahaf wrote: > > Daniel Sahlberg wrote on Fri, 12 Jun 2020 21:14 +0200: > >>> Care to move this over to dev@ with a patch? > >>> > >> Will do, it might take a few days. > >> > >> Thanks to the other users for

Re: Ignore every file except XX*

2020-06-13 Thread Branko Čibej
On 13.06.2020 11:15, Daniel Shahaf wrote: > Daniel Sahlberg wrote on Fri, 12 Jun 2020 21:14 +0200: >>> Care to move this over to dev@ with a patch? >>> >> Will do, it might take a few days. >> >> Thanks to the other users for their suggestions but I don't think they'll >> be general enough for

Re: Ignore every file except XX*

2020-06-13 Thread Daniel Shahaf
Daniel Sahlberg wrote on Fri, 12 Jun 2020 21:14 +0200: > > > > Care to move this over to dev@ with a patch? > > > > Will do, it might take a few days. > > Thanks to the other users for their suggestions but I don't think they'll > be general enough for my use case. Care to explain why

Re: Ignore every file except XX*

2020-06-12 Thread Daniel Sahlberg
> > Care to move this over to dev@ with a patch? > Will do, it might take a few days. Thanks to the other users for their suggestions but I don't think they'll be general enough for my use case. / Daniel

Re: Ignore every file except XX*

2020-06-12 Thread Matt Simmons
It would see the contents of the commit, though, and if the commit included files not starting with XX, it could abort the commit, unless I'm misunderstanding something here? On Fri, Jun 12, 2020 at 5:00 AM Branko Čibej wrote: > On 12.06.2020 08:24, Matt Simmons wrote: > > Have you considered a

Re: Ignore every file except XX*

2020-06-12 Thread Daniel Shahaf
Branko Čibej wrote on Thu, 11 Jun 2020 09:42 +00:00: > On 11.06.2020 10:46, Daniel Sahlberg wrote: > > Hi, > > > > Not sure if this belongs in users or in dev so I follow the guidelines > > and post here first. > > > > I would like to svn:ignore every file (in a certain path) except files > >

Re: Ignore every file except XX*

2020-06-12 Thread Branko Čibej
On 12.06.2020 08:24, Matt Simmons wrote: > Have you considered a pre-commit hook to deny anything not matching > your rule? A pre-commit hook doesn't see the contents of the working copy, it's completely unsuitable for this use case. -- Brane > On Thu, Jun 11, 2020 at 11:21 PM Branko Čibej

Re: Ignore every file except XX*

2020-06-12 Thread Matt Simmons
Have you considered a pre-commit hook to deny anything not matching your rule? On Thu, Jun 11, 2020 at 11:21 PM Branko Čibej wrote: > On 12.06.2020 07:30, Daniel Sahlberg wrote: > > Hi, > > > > Thanks for your quick response! > > > > > > The way I solve a similar case is to set svn:ignore

Re: Ignore every file except XX*

2020-06-12 Thread Branko Čibej
On 12.06.2020 07:30, Daniel Sahlberg wrote: > Hi, > > Thanks for your quick response! >   > > The way I solve a similar case is to set svn:ignore to '*', i.e., to > ignore everything, then just 'svn add' the files I want under version > control. It's not ideal, as you'd miss the files

Re: Ignore every file except XX*

2020-06-11 Thread Daniel Sahlberg
Hi, Thanks for your quick response! > The way I solve a similar case is to set svn:ignore to '*', i.e., to > ignore everything, then just 'svn add' the files I want under version > control. It's not ideal, as you'd miss the files you're interested in. > Already doing this. But sometimes we

Re: Ignore every file except XX*

2020-06-11 Thread Branko Čibej
On 11.06.2020 10:46, Daniel Sahlberg wrote: > Hi, > > Not sure if this belongs in users or in dev so I follow the guidelines > and post here first. > > I would like to svn:ignore every file (in a certain path) except files > starting with XX or YY. > > This question seems to have been asked in 

Ignore every file except XX*

2020-06-11 Thread Daniel Sahlberg
Hi, Not sure if this belongs in users or in dev so I follow the guidelines and post here first. I would like to svn:ignore every file (in a certain path) except files starting with XX or YY. This question seems to have been asked in 2006 ("inverse of svn:ignore property"). I've tried to trace