I am looking for a way to modify the .hgignore file to ignore all the "Properties / AssemblyInfo.cs" files except those that are in the subfolders of "Test /" or "Tests /".
I tried to use an expression of negative appearance (?<!Test)/Properties/AssemblyInfo\.cs$, but I did not find a way to “ignore” in both the “Test /” and “Test /” folders.
(?<!Test)/Properties/AssemblyInfo\.cs$
Python does not support variable length lookbehind.
But it \b(?<!Test)(?<!Tests)/Properties/AssemblyInfo\.cs$should work.
\b(?<!Test)(?<!Tests)/Properties/AssemblyInfo\.cs$
, : , , , , .
, hg add . svn cvs, mercurial add , .hgignore - .
hg add
add
.hgignore
.* .hgignore, hg add , .
.*
.hgignore, :
/Properties/AssemblyInfo\.cs
:
$ hg add Test/Properties/AssemblyInfo.cs $ hg add Tests/Properties/AssemblyInfo.cs
, find, , , , .
find
Usually you just do Tests?, but since dynamic backtracks are not allowed depending on the regexp mechanism, you can simply use two branches:
Tests?
(?<!Test|Tests)/Properties/AssemblyInfo\.cs$
Source: https://habr.com/ru/post/1738479/More articles:Удаление тега XML с помощью С# - c#Check date for 30 days - qtJLabel с отдельными цветами текста и значков значков - javaParallel updating of DBF files with Advantage Local Sever and FoxPro - advantage-database-serverHow can I get the string [] of all different list values? - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1738480/can-addition-of-an-actionlistener-be-short-can-i-add-arguments-to-the-actionperformed&usg=ALkJrhgUjrtUv0idKOTf7CkBucc9ZgtZnQAccessing data returned from server - javascriptHow do I write an HLSL shader shader for Silverlight? - silverlightIE6 the last three characters in the div are repeated differently, where on the page? very strange - htmlImplementation issue SqlDataReader / DbDataReader - sqlAll Articles