branch

How can I create a branch for a non-tip revision in Mercurial?

拟墨画扇 提交于 2020-01-01 09:47:10
问题 In my repo, I have the revisions 1 to 10. I've pushed up to 5 (so the next hg push would publish revisions 6-10). But I have to interrupt my work now and the result isn't 100% complete. So I'd like to move the revisions 6-10 into a new "experimental" branch to allow someone else to complete the work without disrupting the sources for everyone. How can I add a branch to a non-tip revision (in my case: Starting with revision 6)? Or should I use a completely different approach? 回答1: You cannot

HLSL branch avoidance

倾然丶 夕夏残阳落幕 提交于 2020-01-01 09:39:09
问题 I have a shader where I want to move half of the vertices in the vertex shader. I'm trying to decide the best way to do this from a performance standpoint, because we're dealing with well over 100,000 verts, so speed is critical. I've looked at 3 different methods: (pseudo-code, but enough to give you the idea. The <complex formula> I can't give out, but I can say that it involves a sin() function, as well as a function call (just returns a number, but still a function call), as well as a

Reusing a merged development branch / Remerging into an unchanged stable branch with git

有些话、适合烂在心里 提交于 2020-01-01 09:33:31
问题 Two programmers, A & B, are working on a project with a github hosted repo: Branch master exists. Programmer A creates devBranchA based on the latest master master$ git checkout -b devBranchA Programmer B creates devBranchB based on the latest master master$ git checkout -b devBranchB They decide to merge stable changes into master whenever possible. The agreed workflow is: [on devBranch] git commit -m 'Stuff to make branch stable enough to merge' git checkout master git pull origin master

Git branching / rebasing good practices

拥有回忆 提交于 2020-01-01 08:49:32
问题 I have a following scenario: 3 branches: - Master - MyBranch branched off Master for the purpose of developing a new feature of the system - MyBranchLocal branched off MyBranch as my local copy of the branch MyBranch is being rebased against and pushed to by other developers (who are working on the same feature as I am). As the owner of the MyBranch branch I want to keep it in sync with Master by rebasing. I also need to merge the changes I make to MyBranchLocal with MyBranch. What is a good

“Naive” svn merge from branch into trunk?

[亡魂溺海] 提交于 2020-01-01 07:58:26
问题 I am using TortoiseSVN for my C++ project, and am trying to "reintegrate a branch" back into the trunk. My case is simple enough so that for every file which has changed in the branch, I would like it to completely overwrite the matching file in the trunk. Unfortunately, TortoiseSVN is smarter than me, so it merges each pair of files - resulting in some inconsistent code. For example, some code lines which have been deleted in the branch are restored in the merged version. Is there any way to

How to version resources that are shared across projects

陌路散爱 提交于 2020-01-01 05:52:06
问题 We use Team Foundation Server and have numerous ASP.NET Web Application Projects. Each of the Web Apps uses a custom content management system that we've developed in house. The CMS is itself, an ASP.NET web app. When deployed, the CMS resides in a subdirectory, such as "/Admin". The CMS is comprised of .aspx and ascx files, and the corresponding assemblies are, of course, placed in the bin. Presently, the CMS files exist separately for each Web App in source control. In other words, an

How to persist branching logic into database?

∥☆過路亽.° 提交于 2020-01-01 05:16:10
问题 We are building a survey engine for our internal use. I would like to know how to persist the question branching logic into the database? Any body done this before or any ideas on the schema for the database? If the user responses with an answer, we need to skip to the next questions based on the logic added to the questions Each question can have multiple logic added to it. For eg: Question: Is it Sunny, Raining or Cloudy? Answer: Raining. The next question should be based on the previous

Get git diff for any merged branch

霸气de小男生 提交于 2020-01-01 04:38:07
问题 For each defect in code I create separate branch. When defect is fixed I merge this branch in master, so I have history like illustrated below (we see two branches with fixes): defect1 fix defect2 fix a---b---c---d e---f / \ / \ ---o---1---x---y---z---2---o---3---w---4---o--- The question is how to get diff for fix1 (between branch start (1) and branch end (2)) or fix2 (diff between (3) and (4)) at any point of time (e.g. for any closed defect in past). Update: actual question is how to

cannot checkout remote git branch

只谈情不闲聊 提交于 2020-01-01 04:24:45
问题 I'm in a github local clone. Below is the list of branches: $ git branch -a * master online-demo remotes/origin/HEAD -> origin/master remotes/origin/develop remotes/origin/gh-pages remotes/origin/master remotes/origin/online-demo remotes/pateketrueke/develop remotes/pateketrueke/gh-pages remotes/pateketrueke/master When I try to checkout a remote branch, I get an error: $ git checkout develop error: pathspec 'develop' did not match any file(s) known to git. I can't figure out where does that

How do I branch an individual file in SVN?

丶灬走出姿态 提交于 2020-01-01 03:07:45
问题 The subversion concept of branching appears to be focused on creating an [un]stable fork of the entire repository on which to do development. Is there a mechanism for creating branches of individual files? For a use case, think of a common header (*.h) file that has multiple platform-specific source (*.c) implementations. This type of branch is a permanent one. All of these branches would see ongoing development with occasional cross-branch merging. This is in sharp contrast to unstable