Ignore specified subfolders of version folder
Hi, I have a folder say ~/config which is under version control and contains versioned files and folders. Now I would like to create a subfolder say ~/ config/backup which I do NOT want version and would like to have it ignored by svn status. I would also like to ignore anything inside of this subfolder. I trying to use global-ignores option in local configuration file ~/. subversion/config to achieve that. I supposed that configuration like below would do the job. Unfortunately this doesn't work... global-ignores = config/backup/ I can configure it like global-ignores = backup/ but this would ignore folder backup on any place. This I don't want. Is there any way how to achieve that? svn --version svn, version 1.10.2 (r1835932) Thanks, Dan
Re: Ignore specified subfolders of version folder
On Thu, Jan 6, 2022 at 1:27 PM Xsawer xsawer wrote: > > Hi, > I have a folder say ~/config which is under version control and contains > versioned files and folders. Now I would like to create a subfolder say > ~/config/backup which I do NOT want version and would like to have it ignored > by svn status. I would also like to ignore anything inside of this subfolder. > I trying to use global-ignores option in local configuration file > ~/.subversion/config to achieve that. > I supposed that configuration like below would do the job. Unfortunately this > doesn't work... > global-ignores = config/backup/ > > I can configure it like global-ignores = backup/ but this would ignore folder > backup on any place. This I don't want. > Is there any way how to achieve that? Just set and commit the svn:ignore property on the ~/config folder with a value of "backup". See: https://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.ignore.html Mark
Re: Ignore specified subfolders of version folder
Hi Mark, thanks for very quick answer. I confirm this works on 1.10.2 (r1835932). Is there a way how to achieve the same result on 1.7.14 (r1542130) ? The documentation you posted writes about having this feature available since version 1.8 Dan -- Původní e-mail -- Od: Mark Phippard Komu: Xsawer xsawer Datum: 6. 1. 2022 19:36:28 Předmět: Re: Ignore specified subfolders of version folder "On Thu, Jan 6, 2022 at 1:27 PM Xsawer xsawer wrote: > > Hi, > I have a folder say ~/config which is under version control and contains versioned files and folders. Now I would like to create a subfolder say ~/ config/backup which I do NOT want version and would like to have it ignored by svn status. I would also like to ignore anything inside of this subfolder. > I trying to use global-ignores option in local configuration file ~/. subversion/config to achieve that. > I supposed that configuration like below would do the job. Unfortunately this doesn't work... > global-ignores = config/backup/ > > I can configure it like global-ignores = backup/ but this would ignore folder backup on any place. This I don't want. > Is there any way how to achieve that? Just set and commit the svn:ignore property on the ~/config folder with a value of "backup". See: https://svnbook.red-bean.com/nightly/en/svn.advanced.props.special. ignore.html Mark "
Re: Ignore specified subfolders of version folder
Den tors 6 jan. 2022 kl 20:00 skrev Xsawer xsawer : > Hi Mark, > thanks for very quick answer. > I confirm this works on 1.10.2 (r1835932). > Is there a way how to achieve the same result on 1.7.14 (r1542130) ? The > documentation you posted writes about having this feature available since > version 1.8 > It is svn:global-ignores that is new in 1.8. svn:ignore exists also in earlier versions, see https://svnbook.red-bean.com/en/1.7/svn.advanced.props.special.ignore.html Kind regards, Daniel > > Dan > > -- Původní e-mail -- > Od: Mark Phippard > Komu: Xsawer xsawer > Datum: 6. 1. 2022 19:36:28 > Předmět: Re: Ignore specified subfolders of version folder > > On Thu, Jan 6, 2022 at 1:27 PM Xsawer xsawer wrote: > > > > Hi, > > I have a folder say ~/config which is under version control and contains > versioned files and folders. Now I would like to create a subfolder say > ~/config/backup which I do NOT want version and would like to have it > ignored by svn status. I would also like to ignore anything inside of this > subfolder. > > I trying to use global-ignores option in local configuration file > ~/.subversion/config to achieve that. > > I supposed that configuration like below would do the job. Unfortunately > this doesn't work... > > global-ignores = config/backup/ > > > > I can configure it like global-ignores = backup/ but this would ignore > folder backup on any place. This I don't want. > > Is there any way how to achieve that? > > Just set and commit the svn:ignore property on the ~/config folder > with a value of "backup". > > See: > https://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.ignore.html > > Mark > >
Re: Ignore specified subfolders of version folder
On Thu, Jan 6, 2022 at 2:00 PM Xsawer xsawer wrote: > > Hi Mark, > thanks for very quick answer. > I confirm this works on 1.10.2 (r1835932). > Is there a way how to achieve the same result on 1.7.14 (r1542130) ? The > documentation you posted writes about having this feature available since > version 1.8 svn:ignore was a 1.0 feature so definitely will work with 1.7.14 Mark