Re: [tup] dot-files and dot-folders
Or perhaps add a generic mechanism globally or per-rule so ignore certain files. I found myself needing to jump through hoops to ignore logging from some commands. On Wed, Dec 2, 2015 at 11:04 PM, Mike Shal wrote: > On Wed, Dec 2, 2015 at 4:49 PM, Stephen Irons > wrote: > >> >> >> On 3 December 2015 at 06:00, Freddie Chopin >> wrote: >> >>> >>> You might want to ignore other hidden folders of popular version control >>> systems - ".svn" would be a good candidate. >>> >>> >> Also ".bzr", Canonical's bazaar DVCS. Not really popular, but I use it >> (and tup). >> >> >> > Thanks, I've added .svn & .bzr > > On second thought, should we just be ignoring hidden directories > altogether? This should take care of all of these cases, and probably many > others, but still allow hidden files in non-hidden directories. So > foo/.hidden would be tracked by tup but .hidden/foo would be ignored. > > -Mike > > -- > -- > tup-users mailing list > email: tup-users@googlegroups.com > unsubscribe: tup-users+unsubscr...@googlegroups.com > options: http://groups.google.com/group/tup-users?hl=en > --- > You received this message because you are subscribed to the Google Groups > "tup-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tup-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- tup-users mailing list email: tup-users@googlegroups.com unsubscribe: tup-users+unsubscr...@googlegroups.com options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tup-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [tup] dot-files and dot-folders
> > Thanks, I've added .svn & .bzr >> > > On second thought, should we just be ignoring hidden directories > altogether? This should take care of all of these cases, and probably many > others, but still allow hidden files in non-hidden directories. So > foo/.hidden would be tracked by tup but .hidden/foo would be ignored. > Hi, Why not a .tupignore to serve any possible user needs ? -- Raphaël Londeix http://hotgloupi.fr -- -- tup-users mailing list email: tup-users@googlegroups.com unsubscribe: tup-users+unsubscr...@googlegroups.com options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tup-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [tup] dot-files and dot-folders
On Wed, Dec 2, 2015 at 4:49 PM, Stephen Irons wrote: > > > On 3 December 2015 at 06:00, Freddie Chopin > wrote: > >> >> You might want to ignore other hidden folders of popular version control >> systems - ".svn" would be a good candidate. >> >> > Also ".bzr", Canonical's bazaar DVCS. Not really popular, but I use it > (and tup). > > > Thanks, I've added .svn & .bzr On second thought, should we just be ignoring hidden directories altogether? This should take care of all of these cases, and probably many others, but still allow hidden files in non-hidden directories. So foo/.hidden would be tracked by tup but .hidden/foo would be ignored. -Mike -- -- tup-users mailing list email: tup-users@googlegroups.com unsubscribe: tup-users+unsubscr...@googlegroups.com options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tup-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [tup] dot-files and dot-folders
On 3 December 2015 at 06:00, Freddie Chopin wrote: > > You might want to ignore other hidden folders of popular version control > systems - ".svn" would be a good candidate. > > Also ".bzr", Canonical's bazaar DVCS. Not really popular, but I use it (and tup). Stephen Irons -- -- tup-users mailing list email: tup-users@googlegroups.com unsubscribe: tup-users+unsubscr...@googlegroups.com options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tup-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [tup] dot-files and dot-folders
On Wednesday 02 of December 2015 17:30:42 Freddie Chopin wrote: > I'm going to update tup in a moment and > test it with ".config" files. As could be expected, the new version of tup works flawlessly when I configured my project to use ".config" file as an input for tup (parsed by lua and treated like a sort-of config.tup) and as an input for commands. For now I did not notice any problem and I actually don't expect any (; You might want to ignore other hidden folders of popular version control systems - ".svn" would be a good candidate. As for the configuration of such folders - maybe default set could be listed in /etc/tup/options (C:\ProgramData\tup\tup.ini on Windows) file, and the user could override that with his/her own .ini files (preferably Tupfile.ini in root of the project) to whatever is needed (if different than default)? The only folder that must be always ignored is ".tup" - so it would be compiled in the executable and ignored no matter what the user does - everything else could be an option in that case. Regards, FCh -- -- tup-users mailing list email: tup-users@googlegroups.com unsubscribe: tup-users+unsubscr...@googlegroups.com options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tup-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [tup] dot-files and dot-folders
On Wednesday 02 of December 2015 11:26:20 Mike Shal wrote: > I started this in commit e5b0b379a. It ignores .tup, .git, and .hg (and > everything under those directories) where previously it would ignore .* > > I'm sure there will be some other issues with this, and we will probably > need to add support for ignoring specific files for rules (but there are > other requests for that already). So, let me know if this helps or if it's > causing more trouble :) I've noticed the commits yesterday and I was expecting your message on the list (; Many thanks for implementing it! I'm going to update tup in a moment and test it with ".config" files. Regards, FCh -- -- tup-users mailing list email: tup-users@googlegroups.com unsubscribe: tup-users+unsubscr...@googlegroups.com options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tup-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [tup] dot-files and dot-folders
On Thu, Oct 8, 2015 at 4:43 PM, Freddie Chopin wrote: > Hello Mike! > > On Thursday 01 of October 2015 13:10:05 Mike Shal wrote: > > On Thu, Oct 1, 2015 at 12:55 PM, Freddie Chopin < > freddie.cho...@gmail.com> > > wrote: > > > There are more restrictions like this one in tup - for example the fact > > > that > > > you cannot use dot-files or dot-folders as input/output (I've wrote > about > > > that > > > some time ago). > > > > Sorry, I haven't had as much time to work on tup as I had hoped :(. > > dot-files/folders have been ignored primarily to skip scanning & tracking > > things in .git and .tup, but it ignores all hidden files, because why > would > > you want to build things that are hidden from the developer? Maybe > that's a > > dumb idea and you have perfectly good reasons spelled out in the previous > > thread :). > > OK, I have another good argument for allowing dot-files and dot-folders to > be > used in tup. Tup has special treatment for tup.config file, which is a > renamed > .config file generated by kconfig tool. The kconfig tool can be used > standalone in a project to have a nice configuration tool, and this is > exactly > what I do in my RTOS project. The problem is that using any file with > different name than ".config" in the kconfig tool is a bit cumbersome > (partially because of its design, partially because of some strange > bugs/"features"). In my project I use the file generated by this tool both > as > input for tup (I read and parse it manually in lua) and as input to > commands > (to generate a configuration header for C/C++ and to generate linker script > for the configured chip), but I obviously have to use a different name than > ".config". > > I would propose to ignore just .tup folder and allow any other dot-files > and > dot-folders as inputs. If scanning folders such as .git would be a problem > for > performance reasons, I would propose to implement a following restrictions: > 1. Tupfile or Tupfile.lua files in dot-folders are ignored; > 2. Tupdefault.lua file from some parent folder doesn't work in dot-folders; > 3. Only explicit inputs are allowed in dot-folders - no globbing is > possible; > > If even that would be a problem, for a start I would be very happy if tup > would just allow dot-files while we discuss what to do with dot-folders. > > I could try to prepare some patches/pull-requests, but will you accept > them? > (; > I started this in commit e5b0b379a. It ignores .tup, .git, and .hg (and everything under those directories) where previously it would ignore .* I'm sure there will be some other issues with this, and we will probably need to add support for ignoring specific files for rules (but there are other requests for that already). So, let me know if this helps or if it's causing more trouble :) -Mike -- -- tup-users mailing list email: tup-users@googlegroups.com unsubscribe: tup-users+unsubscr...@googlegroups.com options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to tup-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.