dvcs

How to run CVS in parallel with a (“centralized”) DVCS repository?

纵然是瞬间 提交于 2019-12-30 11:28:12
问题 At the moment I am investigating how to introduce a DVCS (in particular I am looking at Hg and Git) while retaining the CVS repository in parallel (or even just the access mechanism via the CVS protocol). There are some developers here that are very reluctant to switch from CVS, but running them in parallel should be fine if they can be synchronized automatically or have a CVS protocol frontend. The CVS repository has been manually edited (on-disk) in the past, but all seems to be consistent

Does Mercurial support empty commit messages?

房东的猫 提交于 2019-12-30 02:45:08
问题 Is there a way to configure Mercurial to allow for empty commit messages? If you try hg commit through the CLI without entering a commit message, the commit is canceled with: abort: empty commit message . Now, I know that committing without a message is usually considered bad form, but does Mercurial allow it at all? 回答1: You can use just a space, but I'd really discourage it: hg commit -m " " 回答2: If the problem is that you don't want to enter the -m "blah" part you can always set up an

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

守給你的承諾、 提交于 2019-12-28 05:30:47
问题 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? 回答1: Here's an answer

Hg: How to do a rebase like git's rebase

三世轮回 提交于 2019-12-28 01:39:28
问题 In Git I can do this: 1. Start working on new feature: $ git co -b newfeature-123 # (a local feature development branch) do a few commits (M, N, O) master A---B---C \ newfeature-123 M---N---O 2. Pull new changes from upstream master: $ git pull (master updated with ff-commits) master A---B---C---D---E---F \ newfeature-123 M---N---O 3. Rebase off master so that my new feature can be developed against the latest upstream changes: (from newfeature-123) $ git rebase master master A---B---C---D--

Hg: How to do a rebase like git's rebase

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-28 01:38:59
问题 In Git I can do this: 1. Start working on new feature: $ git co -b newfeature-123 # (a local feature development branch) do a few commits (M, N, O) master A---B---C \ newfeature-123 M---N---O 2. Pull new changes from upstream master: $ git pull (master updated with ff-commits) master A---B---C---D---E---F \ newfeature-123 M---N---O 3. Rebase off master so that my new feature can be developed against the latest upstream changes: (from newfeature-123) $ git rebase master master A---B---C---D--

Locking binary files using git version control system

落花浮王杯 提交于 2019-12-27 16:50:32
问题 For one and a half years, I have been keeping my eyes on the git community in hopes of making the switch away from SVN. One particular issue holding me back is the inability to lock binary files. Throughout the past year I have yet to see developments on this issue. I understand that locking files goes against the fundamental principles of distributed source control, but I don't see how a web development company can take advantage of git to track source code and image file changes when there

Locking binary files using git version control system

别来无恙 提交于 2019-12-27 16:50:29
问题 For one and a half years, I have been keeping my eyes on the git community in hopes of making the switch away from SVN. One particular issue holding me back is the inability to lock binary files. Throughout the past year I have yet to see developments on this issue. I understand that locking files goes against the fundamental principles of distributed source control, but I don't see how a web development company can take advantage of git to track source code and image file changes when there

Mercurial show diff against 2 parents or base during merge

有些话、适合烂在心里 提交于 2019-12-25 03:54:28
问题 Our teem recently faced with merge that removes one leaf of merge and we "lost" changes (as if you perform hg merge --tool internal:local ). This happen because we don't experienced with hg merge command. hg diff shown only one difference, but not other. BASE --- HEAD1 --- MERGE \---- HEAD2 --/ Suppose in HEAD1 I merge HEAD2 but has not yet commit changes. HEAD2 diff against MERGE I see by hg diff . It is -r BASE:HEAD2 patch. How can I see diff between current local merge state with HEAD1 as

What does exactly mean by the term repository in git?

混江龙づ霸主 提交于 2019-12-24 19:25:07
问题 I'm trying to learn git. I read few tutorials. Everywhere I got confused with the actual meaning of this term called 'Repository' . See the below definitions : A repository contains a directory named .git, where git keeps all of its metadata for the repository. The content of the .git directory are private to git. So, my question is whether the directory which contains entire project (i.e. all the files of my project) along with the .git directory (usually it's hidden by default) is called

Mercurial authentication info in history

廉价感情. 提交于 2019-12-24 14:21:10
问题 I have a "central" Mercurial repository, which configured to use HTTPS and requires authentication to clone-pull-push changes. Developers has their own repositories on their computers. They configure their local settings freely, and for example add section like [ui] username = anyname to their local mercurial.ini file. When a user try to push his changes to the "central" repository, he authenticates, but authentication info is not stored in Mercurial. Mercurial store locally configured