dvcs

DVCS Choices - What's good for Windows?

ぃ、小莉子 提交于 2019-11-29 16:37:13
问题 So I want to get a project on a distributed version control system, such as mercurial, git, or bazaar. The catch is that I need the Windows support to be good, i.e. no instructions that start off with "install cygwin...". Now I've heard that git's Windows support is decent these days, but don't have any first hand experience. Also, it sounds like the bazaar team has an explicit goal of making it as multiplatform as possible. Can I get any recommendations? 回答1: I use msys-git on windows every

Migrating away from Clearcase

女生的网名这么多〃 提交于 2019-11-29 13:35:59
We are migrating from Clearcase to another VCS (probably either SVN or Mercurial). For companies that have made this transition, what factors did they find important in selecting another VCS tool, and what practices did they find eased the transition? SVN and Mercurial are both good SCM. Many opensource projects use them. If your choice only narrowed down to these two then what you and your team must consider is: Workflow and workflow How do you want to do the commits and branching? Distributed or Purely centralized? This is related to the company policy too. Go with SVN if you want everything

How do closed branches affect Mercurial performance?

烂漫一生 提交于 2019-11-29 11:48:24
问题 I've noticed that some answers to questions about branch names quote the Mercurial wiki to indicate that the branch-per-feature or branch-per-bug naming conventions may cause performance problems. Does the ability to mark branches as closed with the --close-branch flag on commits have any affect on this performance claim? 回答1: Does the ability to mark branches as closed with the --close-branch flag on commits have any affect on this performance claim? Marking a branch closed with hg commit -

Does any Version Control System like SVN, Git, or Mercurial let you “keep latest version” but not the revisions? (such as for binary files)

早过忘川 提交于 2019-11-29 09:38:51
In our project files, if there are binary files, such as .doc, .xls, .jpg, and we choose to not keep their past revisions (just keeping a latest version is ok), is there a way to tell SVN, Git, or Mercurial or some other tool to skip the revisions for these files or for a particular folder? Say, there is a 4MB .doc file that I need to check in hundred of times, but I don't really care so much about its past versions. So if the system keeps 100 revisions of it, that's already 400MB... checking in 300 times means 1.2GB for 1 file and that's not good. Only the latest version is good so that

Can you prevent default-push, but allow pull?

强颜欢笑 提交于 2019-11-29 07:37:39
I want to know if there's a way to turn off the default push, but keep the default pull when using Mercurial. I don't want to accidentally pollute the master repository by inadvertently pushing from an experimental repository. Your solution probably is the quickest and is certainly effective. If there's any official way it would be using a preoutgoing hook: [hooks] preoutgoing = bash -c 'read -p "Really push to $HG_URL? " -n 1 RESP ; [ "$RESP" == "y" ]' which will ask you if you want to push and provide the URL to which it would go as a reminder. moswald I was able to solve this by putting the

How to best configure a central repository/multiple central repositories for Mercurial?

送分小仙女□ 提交于 2019-11-29 07:03:10
问题 I am new to Mercurial and trying to figure out if it could replace SVN. Everyone I work with has used SVN, CVS and VSS (shiver), so this could be quite a large change. I have been very interested after reading about its merge and branch capability, but have a few reservations. We are currently on SVN, and have one central repository. From my reading, it seems as though there is no ONE central repository for all projects when using Mercurial. NOTE: We consider each project a separate logical

Prevent commits in a local branch

南楼画角 提交于 2019-11-29 01:25:16
In my local git tree I pull commits from the "master" branch in the repository, but all development is done in a different branch, and pushed in a different branch too. I would like to avoid mistakes and prevent accidental commits in my local "master" branch, and allow only pull requests (then I'd rebase the developement branch to the updated master). Is this possible? How? brice You can use a pre-commit hook . For example, place the following script as .git/hooks/pre-commit : #!/bin/bash if test $(git rev-parse --abbrev-ref HEAD) = "master" ; then echo "Cannot commit on master" exit 1 fi And

Distributed Version Control “killer applications”

↘锁芯ラ 提交于 2019-11-28 21:35:39
Considering switching to Mercurial or Git? We are too. I'm currently studying the benefits of DVCS which turn out to be vast, lust and must. I would love to hear from the community typical usage patterns. Let's create a "Top N" productivity feature list for DVCS (based on Mercurial, Git or alike). Please describe work flows that prove to be productive for you / your team, procedures that DVCS helped you achieve/improve as well as blunt "good stuff" that DVCS gives you (don't assume stuff are clear to the novice user). I think that such a list could help folks approaching the team with a DVCS

In Mercurial (hg), how do you see a list of files that will be pushed if an “hg push” is issued?

落花浮王杯 提交于 2019-11-28 20:27:32
We can see all the changesets and the files involved using hg outgoing -v but the filenames are all scattered in the list of changesets. Is there a way to just see a list of all the files that will go out if hg push is issued? First, create a file with this content: changeset = "{files}" file = "{file}\n" Let's say you call it out-style.txt and put it in your home directory. Then you can give this command: hg -q outgoing --style ~/out-style.txt | sort -u A somewhat under-appreciated feature: hg status can show information about changes in file status between arbitrary changesets. This can be

Mercurial: Remove changeset from remote branch

橙三吉。 提交于 2019-11-28 20:14:41
问题 Is there a way to remove a from a remote changeset, or to remove an entire changeset? I accidentely pushed a .war file to a remote repo and I want to remove it. 回答1: Mercurial tries very hard to keep your data safe, so you can generally not change history. That being said, there are numerous extensions for Mercurial that allows you to quite easily change history anyway. There is a page on the wiki about editing history. That page also explains the consequences. In your specific case, you have