python - hgignore glob works differently to hgstatus glob -
python - hgignore glob works differently to hgstatus glob -
i have folder set following:
project/latest_kml/file.kml project/.hgignore project/.hg/...my .hgignore file looks this:
class="snippet-code-html lang-html prettyprint-override">syntax: glob *.kml *.kmz **nohup.out log/**
after bit of googling found out should have used "**.kml' not understanding why *.kml ignoring .kml files. if add together new .kml file latest_kml folder doesn't added when run addremove, or appear in hg status.
if remove *.kml line hg status shows new .kml file.
the confusing part: if remove '*.kml' line .hgignore , run hg status 'glob:**.kml' shows new kml file added project/latest_kml/. if instead utilize hg status 'glob:*.kml', shows nothing.
what cause of behaviour?
hg help patterns
states clearly
globs rooted @ current directory; glob such "*.c" match files in current directory ending ".c".
the supported glob syntax extensions "**" match string across path separators
...
glob:*.c name ending in ".c" in current directory *.c name ending in ".c" in current directory **.c name ending in ".c" in subdirectory of current directory including itself.
python mercurial kml
Comments
Post a Comment