在Grails中使用Hg的最佳实践? [英] Best practices for using Hg with Grails?

查看:121
本文介绍了在Grails中使用Hg的最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该入住/不入住?由于许多文件有时是自动生成的,我并不完全知道如何使用版本控制来处理这个问题......它与标签有什么关系?

What should I check in/not check in? Since many of the files are sometimes auto-generated I'm not entirely sure how to handle this using version control...does it have something to do with tags?

例如,在ANT中,我知道不检查我的目标/ bin目录......但是Grails增加了另一层混乱......因为一些代码被生成,其中一些是不是。

For instance in ANT, I know not to check-in my target/bin directories...but Grails adds another level of confusion to this...since some of code is generated and some of it is not.

(它可能会变得更清晰,因为我去...但似乎是需要有一些方法能够分辨刚刚生成的内容和什么是由开发人员修改,以便它需要被放置在版本控制)

(It may become clearer as I go...but it seems to be that there needs to be some way of being able to tell what was just generated and what was modified by a developer so that it needs to be placed in version control)

推荐答案

这里是.hgignore目录我已经在我最近的grails项目中(有几个项目特有的东西被取出):

Here's the .hgignore directory I've got on my most recent grails project (with a couple of project specific things taken out):

syntax: glob

out
target
logs
*.iml
.idea
*.iws
*.war
workspace.xml
lib/build
lib/compile
lib/runtime
lib/test
~$*
stacktrace.log
*.tmproj
*.launch
reports/
*.orig
*.zip

.DS_Store
*/.DS_Store
web-app/WEB-INF/classes
cobertura.ser

这篇关于在Grails中使用Hg的最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆