mercurial

DVCS how structure with large integrated code base, with multiple projects sharing much common code?

二次信任 提交于 2020-01-10 05:11:09
问题 I have a cvs repository, with mostly java code. Each package sits in it's own top level dir, like so, with the sourced laid out in typical java fashion. $CVSROOT/my.domain.module1/src/my/domain/module1 $CVSROOT/my.domain.module2/src/my.domain/module2 $CVSROOT/my.domain.share1/src/my/domain/share1 This means we can write build scripts that can easily pull any combination of packages out of the repository in order to build a particular shippable piece of software. So if I checked out my.domain

What's the ROI of Sub-Repositories?

荒凉一梦 提交于 2020-01-06 19:55:00
问题 I know that sub-repositories save you an your team time, but what is the ROI on them? https://www.mercurial-scm.org/wiki/subrepos 回答1: If you have a dependency which is developed by you along with the main project then subrepos are a perfect fit IMO. I've been using subrepos in these circumstances for a while now and they save a lot of effort. I feel they're particularly beneficial for open-source projects, where getting all dependencies required to build your project can be a pain for

代码优先与模型/数据库优先[关闭]

空扰寡人 提交于 2020-01-06 15:41:12
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 使用实体框架4.1代码优先于模型/数据库优先使用EDMX图表有什么优缺点? 我正在尝试完全理解使用EF 4.1构建数据访问层的所有方法。 我正在使用Repository模式和 IoC 。 我知道我可以使用代码优先方法:手动定义我的实体和上下文,并使用 ModelBuilder 来微调模式。 我还可以创建 EDMX 图并选择使用T4模板生成相同 POCO 类的代码生成步骤。 在这两种情况下,我最终都得到了与 ORM 无关的 POCO 对象和源自 DbContext 上下文。 数据库优先似乎最吸引人,因为我可以在企业管理器中设计数据库,快速同步模型并使用设计器对其进行微调。 那么这两种方法有什么区别? 是仅仅关于VS2010与企业管理器的偏好? #1楼 代码优先似乎是后起之秀。 我快速浏览了Ruby on Rails,它们的标准是代码优先,具有数据库迁移。 如果您正在构建MVC3应用程序,我相信Code首先具有以下优势: 简单的属性修饰 - 您可以使用验证,要求等属性来装饰字段,这对于EF建模来说非常尴尬 没有奇怪的建模错误 - EF建模通常会出现奇怪的错误,例如当您尝试重命名关联属性时,它需要匹配底层的元数据 - 非常不灵活。 合并并不尴尬 - 当使用像mercurial这样的代码版本控制工具时,合并

有没有办法在一个命令中获取git根目录?

陌路散爱 提交于 2020-01-06 13:47:09
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Mercurial有一种打印根目录(包含.hg)的方法 hg root 在git中是否有类似的东西来获取包含.git目录的目录? #1楼 如果你正在寻找一个好的别名来做这个加上如果你不在git目录中而不是放弃 cd : alias ..g='git rev-parse && cd "$(git rev-parse --show-cdup)"' #2楼 $ git config alias.root '!pwd' # then you have: $ git root #3楼 这是我编写的一个脚本,它处理两种情况:1)带有工作空间的存储库,2)裸存储库。 https://gist.github.com/jdsumsion/6282953 git-root (路径中的可执行文件): #!/bin/bash GIT_DIR=`git rev-parse --git-dir` && ( if [ `basename $GIT_DIR` = ".git" ]; then # handle normal git repos (with a .git dir) cd $GIT_DIR/.. else # handle bare git repos (the repo IS a xxx.git dir) cd $GIT_DIR

Using UNC path as paths location in Mercurial IIS6 Server2003

人走茶凉 提交于 2020-01-06 08:52:27
问题 I'm running the latest Mercurial and Python 2.6; IIS6 is using the wildcard ISAPI method to attach the site to the Mercurial hgwebdir_wsgi [paths] \ = \\COMP3254\TestRepo\* [web] baseurl = / allow_push = * push_ssl = false style = monoblue The setup works perfectly if I reference the local drive E:\repo* but doesnt work if I specify the network as above; I've given the server (MERCDEV01$) full permissions on the shared folder on COMP3254, I can't think of any other reason it wouldn't work.

Using UNC path as paths location in Mercurial IIS6 Server2003

三世轮回 提交于 2020-01-06 08:52:17
问题 I'm running the latest Mercurial and Python 2.6; IIS6 is using the wildcard ISAPI method to attach the site to the Mercurial hgwebdir_wsgi [paths] \ = \\COMP3254\TestRepo\* [web] baseurl = / allow_push = * push_ssl = false style = monoblue The setup works perfectly if I reference the local drive E:\repo* but doesnt work if I specify the network as above; I've given the server (MERCDEV01$) full permissions on the shared folder on COMP3254, I can't think of any other reason it wouldn't work.

How to use ivy integration versions against old versions of code?

↘锁芯ラ 提交于 2020-01-06 07:15:27
问题 My organization is looking into using Apache Ivy for dependency management in a multi-project configuration. We have a main project (call it MAIN) where most development takes place and a few helper library projects (call it LIBPROJ) which we keep in separate repositories. What we do right now is to build jars for the library projects when they change, and commit them to the main project, but this is a big headache and leads to project bloat. It looks like using something like ivy is a good

Force warnings about crossing branches when running Update using TortoiseHg

非 Y 不嫁゛ 提交于 2020-01-06 03:08:26
问题 When getting the latest code from a Mercurial repo on the command line, if there are changesets that need to be merged Mercurial raises a warning: hg up abort: crosses branches (merge branches or use --check to force update) This is what I expect, and from the Mercurial book it says "Mercurial is telling us that the hg update command won't do a merge; it won't update the working directory when it thinks we might want to do a merge, unless we force it to do so." At this point I know I need to

How to get the file count for each revision of mercurial using python script

我怕爱的太早我们不能终老 提交于 2020-01-06 02:48:08
问题 import sys import hglib import re # figure out what repo path to use if len(sys.argv) > 1: repo1 = sys.argv[1] # connect to hg client1 = hglib.open(repo1) for data1 in client1.log("date('>2015-06-01') and date('<2015-09-16')"): m = re.findall("\w+\\-\d+", data1.desc.upper()) if len(m)> 0: data_row = [data1.rev,data1.author,data1.branch,data1.desc,m[0]] This script gives the revision,author,branch,description . I want to get count of files for each revision. How can this be done? 回答1: You can

TortoiseHg - display commits that are not pushed

孤街浪徒 提交于 2020-01-06 02:29:43
问题 It's happened more than a few times that I'll commit a bit of code, then forget to actually push the code over to our remote repository (until my boss tells me that XYZ still doesn't work, and I feel silly). Is there any way to have Tortoise display committed code that hasn't been pushed differently? Ideally I'd love it if there was a way to get such changesets to show with a gray background or something. So in the below screenshot, if revision 1270 had not been pushed, have that show up