dvcs

Does a bisect in version control benefit from using a rebaseif workflow?

吃可爱长大的小学妹 提交于 2019-12-05 20:54:54
The rebaseif mercurial extension automates the process, when pulling, of doing a rebase only if the merge can be done automatically with no conflicts. (If there are conflicts to resolve manually, it does not rebase, leaving you ready to do a manual merge of the two branches.) This simplifies and linearizes the history when developers are working in different parts of the code, although any rebase does throw away some information about the state of the world when a developer was doing work. I tend to agree with arguments like this and this that in the general case, rebasing is not a good idea,

What is a practical workflow for keeping local changes uncommitted in git?

心不动则不痛 提交于 2019-12-05 17:14:05
问题 What I want to do is already described in that question. But I want to solve that problem in a practical and more generic way. So the use-case is the following: I have several local changes in several files web.config , createDb.sql or in any others I don't want to commit those files, since changes are specific to my local machine only Those files must be version controlled and moreover changes are made pretty often to some of them (sql scripts in particular), so I want to receive updates for

Is it possible to export from Fossil SCM into some other DVCS?

陌路散爱 提交于 2019-12-05 16:01:31
问题 For many years I used Darcs as my only DVCS...some time ago I explored Monotone which I like as well. However, the main problem with both is the lack of complete hosting solutions. Fossil looks as interesting option (although we don't like its use of non-standard wiki markup) considering it's very light in regard to hosting requirements and incorporates distributed bug tracker which eliminates the need for some public hosting solution as in the scenario with darcs & monotone. However, Fossil

Git checkout to external work tree and remove deleted files

a 夏天 提交于 2019-12-05 15:02:13
We want to use Git to deploy code on our webserver. Therefore, we have a initialized a bare repository on our production server. Whenever we release a new version, we perform a git checkout into the DocumentRoot of the website: git --work-tree=/path/to/webroot/ checkout -f master In the subdirectories of webroot , there are several files which are not tracked by Git (Cache files, user-uploaded files etc.). These must of course not be deleted by Git when performing the checkout (and this part works fine so far). However, Git also does not delete files which were previously tracked, but have

How can I have two “streams of development” (branches?) track each other while remaining different in particular ways?

孤人 提交于 2019-12-05 06:38:14
BRIEF: I want to have two (or more) "streams of development" / environments track each other, sending changes between each other in both directions, without converging totally - while preserving certain key, essential, differences? DETAIL, ONE PARTICULAR EXAMPLE: Here is one particular example: I have been version controlling my home directory, glew-home, for, oh, 28 years. RCS, SCCS, many RCS wrappers, CVS, SVN, a brief period of experimentation with early DVCS like Monotone and Darcs, bzr, git, and now Mercurial. At the moment I am mainly happy using Mercurial, although I'll jump back to git

dvcs partial merge (git, hg merge tracking)

大憨熊 提交于 2019-12-05 04:52:19
I've one question about general DVCS, including Git and Hg. In both Git and Hg merge tracking is done at the "commit" level instead of the "file/directory" level. One of the "side effects" is that you can't easily do a "partial merge": You've modified 30 files in your branch "feature_branch_x" You want to merge ONLY the files under (let's say) /kernel/gui With "item based merge tracking" (Perforce, ClearCase, Plastic SCM <= 3.0) you can just select a few files to merge, then checkin, then later repeat the merge and the pending files will show up. With Hg, Git: once you merge (there're ways to

Get my database under Version Control using a DVCS [Mercurial]

亡梦爱人 提交于 2019-12-05 04:34:20
What would be the best approach for versioning my whole database ? Creating a file for each database object (table,view,procedsure..) or rather having one file for all DDL scripts and any new change will be put in a separate file ? What about handling changes made in a Database manager tool ? I'd like to have a generic solutions for any kind of RDBMS. Are there any other options ? I'm a huge VCS fan in general and a big Mercurial booster, but I really think you're going down the wrong path. VCSs aren't just about iterative changes, the "what", they're also about answering the "who", "when",

How to manage a hierarchy of committers (like Linux kernel dev)

£可爱£侵袭症+ 提交于 2019-12-05 01:31:14
问题 I'm a committer on a project with a GitHub repo. I have a small team of developers who can't read from or commit to that repo. I'd like to setup a git server they can commit to that is a clone of the GitHub repo. When they make commits, I will review them, sometimes make edits, then push to the GitHub repo. My question is, since I'll sometimes be altering their commits, what is the best workflow for pulling changes from GitHub back to my clone server so that everyone's history doesn't get

Benefits of using git branches vs. multiple repositories

元气小坏坏 提交于 2019-12-05 00:28:17
We are doing development for automation code. Our code automates the company's products and is synced to a particular product version. Currently, we have 1 big Git repository with multiple branches in it - v1.0, v1.1, v2.0 (automation for version 1.0 goes in v1.0 branch, and so on). What are the advantages and disadvantages of having these in a single repository with branches vs. keeping each version code in a separate repository ? Both solutions can work, the answer i'm looking for is a list of pros/cons for either approach. I know that many teams are using branches to isolate temporary

Version-controlled extension configuration in Mercurial

。_饼干妹妹 提交于 2019-12-04 21:08:31
问题 Normally, I would enable extensions by adding the following to .hg/hgrc : [extensions] hgext.win32text= [encode] ** = cleverencode: [decode] ** = cleverdecode: However, I want this configuration to be versioned, i.e. part of the repository, so that it is enabled for anyone else (coworkers, build machines) cloning the repository. Note that whomsoever clones the repository should not be required to do anything to enable these extensions. It appears it is not possible from the documentation, but