Google App Engine App.yaml配置跳过文件以忽略Mercurial文件

use*_*109 8 mercurial google-app-engine yaml

我在skip_files的顶部添加了一行,以使app引擎部署跳过以.hg开头的所有文件,例如.hgignore文件和.hg目录.这会忽略整个.hg目录及其所有文件和子目录吗?

skip_files:
- ^(.*/)?\.hg*$
- ^(.*/)?app\.yaml
- ^(.*/)?app\.yml
- ^(.*/)?index\.yaml
- ^(.*/)?index\.yml
- ^(.*/)?#.*#
- ^(.*/)?.*~
- ^(.*/)?.*\.py[co]
- ^(.*/)?.*/RCS/.*
- ^(.*/)?\..*
Run Code Online (Sandbox Code Playgroud)

Rob*_*uin 21

通过默认的UNIX风格隐藏的文件和文件夹被跳过.换句话说,任何以点(.)开头的文件都已被跳过.这就是你的列表中的最后一行如果最后没有丢失*的话(我假设\ s实际上就在那里).

你的建议:^(.*/)?.hg$不太对劲.匹配任何以.hg您需要的文件^(.*/)?\.hg.*.

你应该阅读正则表达式.

编辑:从appcfg.py update -v添加转储.

Scanning files on local disk.
2010-10-10 17:14:07,244 INFO appcfg.py:1693 Ignoring directory '.hg': Directory matches ignore regex. 
2010-10-10 17:14:07,244 INFO appcfg.py:1686 Ignoring file '.hgignore': File matches ignore regex. 
Run Code Online (Sandbox Code Playgroud)