dvcs

Can you prevent default-push, but allow pull?

谁说我不能喝 提交于 2019-11-28 01:01:28
问题 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. 回答1: 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

Is there any distributed revision control system that supports partial checkout/clone?

血红的双手。 提交于 2019-11-27 20:40:30
As far as I know all distributed revision control systems require you to clone the whole repository. For this reason is it not wise to put huge amounts of content into one single repository (thanks for this answer ). I know that this a not a bug but a feature, but I wonder whether this is a requirement for all distributed revision control systems. In distributed rcs the history of a file (or a chunk of content) is a directed acyclic graph, so why can't you just clone this single DAG instead of the set of all graphs in the repository? Maybe I miss something but the following use-cases are hard

Why Kiln is based on Mercurial, and not other (D)VCS

£可爱£侵袭症+ 提交于 2019-11-27 19:59:53
What were the reason for chosing Mercurial as a basis of FogCreek Kiln , a source control management system with tightly integrated code review, and FogBugz integration? Why Mercurial, and not other (distributed) version control system, like Bazaar, Git or Monotone, or creating own version control system like Fossil (distributed software configuration management, including bug tracking and wiki) did? What were features that make FogCreek choose Mercurial as Kiln engine? deft_code Here's an answer from one of the Kiln developers. It provides real branching. It's easy to use. Windows support is

How to automatically merge .hgtags in Mercurial?

不问归期 提交于 2019-11-27 19:47:10
I have a script running some Mercurial commands in non-interactive mode on a build server. One of the commands merges two branches and there is always a conflict in the .hgtags file during the merge because of the way the build scripts are set up. How can I force Mercurial to always merge the .hgtags file using changes from both files, first from one, then from the other? For example, if I the files to merge were A B C and A B D I would like the result to be A B C D I am guessing I will need a custom merge tool. What tool provides this functionality? Martin Geisler Please see the answer below

How to set up Git bare HTTP-available repository on IIS

蓝咒 提交于 2019-11-27 17:24:12
My server already runs IIS on TCP ports 80 and 443. I want to make a centralized "push/pull" Git repository available to all my team members over the Internet. So I should use HTTP or HTTPS. But I cannot use Apache because of IIS already hooking up listening sockets on ports 80 and 443! Is there any way to publish a Git repository over IIS ? Does Git use WebDAV? Update. It seems that Git HTTP installation is read-only. That's sad. I intended to keep the stable branch on a build server and redeploy using a hook on push. Does anyone see a workaround besides using SVN for that branch? Brian

How do I keep an svn:external up to date using git-svn?

做~自己de王妃 提交于 2019-11-27 17:06:34
Treating my repository as a SVN repo, I get: svn co http://myrepo/foo/trunk foo ... foo/ bar/ baz/ -> http://myrepo/baz/trunk Treating it as a Git repo, I get: git svn clone http://myrepo/foo --trunk=trunk --branches=branches --tags=tags ... foo/ bar/ I can clone baz to my local machine elsewhere and add a symlink, but that's just a hack. Is there a way to have git svn rebase automatically pull in those changes when it updates everything else, just like svn up does? The best means of integrating svn externals with git-svn that I've seen is this script , which clones your externals into a .git

Git push won't do anything (everything up-to-date)

天大地大妈咪最大 提交于 2019-11-27 16:53:32
I'm trying to update a Git repository on GitHub. I made a bunch of changes, added them, committed then attempted to do a git push . The response tells me that everything is up to date, but clearly it's not. git remote show origin responds with the repository I'd expect. Why is Git telling me the repository is up to date when there are local commits that aren't visible on the repository? [searchgraph] git status # On branch develop # Untracked files: # (use "git add <file>..." to include in what will be committed) # # Capfile # config/deploy.rb nothing added to commit but untracked files

Backing Out a backwards merge on Mercurial

吃可爱长大的小学妹 提交于 2019-11-27 16:47:54
How do you reverse the effect of a merge on polarised branches without dying of agony? This problem has been plaguing me for months and I have finally given up. You have 1 Repository, with 2 Named Branches. A and B. Changes that occur to A will inevitably occur on B. Changes that occur directly on B MUST NEVER occur on A. In such a configuration, merging "B" into "A" produces a dire problem in the repository, as all the changes to B appear in A as if they were made in A. The only "normal" way to recover from this situation appears to be "backing out" the merge, ie: hg up -r A hg backout -r

Prevent commits in a local branch

痞子三分冷 提交于 2019-11-27 15:52:18
问题 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? 回答1: You can use a pre-commit hook. For example, place the following script as .git/hooks/pre-commit : #!/bin/bash if

Distributed Version Control “killer applications”

↘锁芯ラ 提交于 2019-11-27 14:00:22
问题 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