相关疑难解决方法(0)

Mercurial:全局忽略文件

我知道.hgignore如何以逐个项目的方式忽略文件.我想忽略所有Mercurial存储库的内容.

有什么我可以坚持下去.hgrc吗?或者.hgignore在我的$HOME道路上(我已经尝试过了,但也许我做错了).

mercurial hgignore hgrc

61
推荐指数
1
解决办法
1万
查看次数

如何使用Mercurial忽略Eclipse项目的.classpath?

我正在尝试在我的Mac(笔记本电脑)和PC(桌面)之间共享存储库.项目有一些外部依赖项存储在每台机器的不同位置,并在Eclipse项目的.classpath文件中注明.共享项目更改时,依赖项会中断.我正在试图弄清楚如何防止这种情况发生.

我尝试过将.hgignore与以下设置一起使用,但没有成功:

syntax: glob
*.classpath
Run Code Online (Sandbox Code Playgroud)

基于此问题,似乎.hgignore文件不允许Mercurial忽略也提交到存储库的文件.还有另一种方法吗?配置项目以使其工作的其他方法?

mercurial configuration-files hgignore

4
推荐指数
1
解决办法
4527
查看次数

mercurial并忽略模式

我试图让mercurial忽略差异.我根据Mercurial忽略文件执行了以下操作:

$ echo "*.diff" >> .hgignore
Run Code Online (Sandbox Code Playgroud)

状态现在给我一个错误(为了便于阅读,我添加了'...'):

$ hg status
abort: .../.hgignore: invalid pattern (relre): *.diff
Run Code Online (Sandbox Code Playgroud)

在Web上搜索错误消息会返回一些不相关的结果.关于如何忽略diff文件的任何想法?

mercurial ignore hgignore

3
推荐指数
1
解决办法
885
查看次数

水银.版本控制和部署.不同的配置文件.如何?

我有如下设置.

位于bitbucket的私有存储库,我保留了'master'存储库.我的服务器上的存储库充当"实时"网站.我的笔记本电脑上的存储库充当我的工作副本.

我的流程如下.我对本地存储库中的文件进行了更改.我在当地提交这些.我将这些更改推送到bitbucket.然后我将这些更改从我的bitbucket提取到网络服务器.

然而,我的问题是我的本地副本使用不同的数据库,路径等配置设置,我想要的是我在bitbucket上的'config.php'文件包含服务器设置,以及我本地主机上的config.php包含本地设置.

我相信这可以通过.hgignore实现,但我没有成功研究.我遇到的问题是我制作我的服务器设置文件,将其推送到bitbucket,"忘记"我本地存储库中的文件,创建.hgignore,然后重新创建该文件.然而,当我'忘记'文件TortoiseHG通知并要求我将更改提交到bitbucket ....

任何想法将不胜感激.谢谢

附加点.

根据以下建议,我开发了如下设置:

我的笔记本电脑上有我的本地存储库,我可以在其中进行编辑.我有bitbucket本质上是'主'存储库 - 如果任何其他开发人员加入团队他们克隆这个.我的网络主机上有我的实时存储库.

在我的实时存储库中,我有一个.hgignore文件,它会忽略相应的配置文件.因此,当我hg pull从我的主机执行操作时,它会使用localhost配置文件按原样提取存储库,但是当我键入hg update(对于实时工作副本)时,这些文件将被忽略/不更新.

有人可以澄清一下我是否理解这一点,以及这是否是实现我想要的合适方式?

谢谢

version-control mercurial tortoisehg bitbucket

2
推荐指数
1
解决办法
536
查看次数

为什么我的hgignore看起来不起作用?

当我这样做时,hg status我看到:

[jiewmeng@JM Code]$ hg status
M examples/SampleTestingSolution/EmptyGeneralTesting/Debug/SPA.lib
M examples/SampleTestingSolution/EmptyGeneralTesting/Debug/UnitTesting.exe
M examples/SampleTestingSolution/EmptyGeneralTesting/Debug/UnitTesting.ilk
M examples/SampleTestingSolution/EmptyGeneralTesting/Debug/UnitTesting.pdb
M examples/SampleTestingSolution/EmptyGeneralTesting/EmptyGeneralTesting.suo
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/AST.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/CL.read.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/CL.write.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/DesignExtractor.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/Lib-link.read.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/Lib-link.write.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/Node.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/PKB.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/Parser.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/Query Evaluator.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/Query Processor.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/SPA.Build.CppClean.log
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/SPA.lastbuildstate
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/SPA.log
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/VarTable.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/cl.command.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/lib.command.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/vc100.idb
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/Debug/vc100.pdb
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/SPA.vcxproj
M examples/SampleTestingSolution/EmptyGeneralTesting/SPA/SPA.vcxproj.filters
M examples/SampleTestingSolution/EmptyGeneralTesting/UnitTesting/Debug/CL.read.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/UnitTesting/Debug/CL.write.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/UnitTesting/Debug/NodeTest.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/UnitTesting/Debug/UnitTest.obj
M examples/SampleTestingSolution/EmptyGeneralTesting/UnitTesting/Debug/UnitTesting.lastbuildstate
M examples/SampleTestingSolution/EmptyGeneralTesting/UnitTesting/Debug/UnitTesting.log
M examples/SampleTestingSolution/EmptyGeneralTesting/UnitTesting/Debug/cl.command.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/UnitTesting/Debug/link.command.1.tlog
M examples/SampleTestingSolution/EmptyGeneralTesting/UnitTesting/Debug/link.read.1.tlog …
Run Code Online (Sandbox Code Playgroud)

mercurial

1
推荐指数
1
解决办法
189
查看次数