branch

What do "branch", "tag" and "trunk" really mean?

I've seen these words a lot around subversion (and I guess general repository) discussions. Myself I have been using svn for my projects the last few years, but I've never grasped the complete concept of these directories. What do they mean? ...

Switch branch names in git

There may be more than one way to ask this question, so here's a desciption of the problem. I was working on master and committed some stuff and then decided I wanted to put that work on hold. I backed up a few commits and then branched from before I started my crap work. Practically this works fine, I just now have a different branch as...

Branching Strategies

The company I work for is starting to have issues with their current branching model, and I was wondering what different kinds of branching strategies the community has been exposed to? Are there any good ones for different situations? What does your company use? What are the advantages and disadvantages of them? ...

View TFS checkin history through merges?

In TFS when you merge branch A to branch B and checkin, you get a single changeset on B (typically with a comment like "merged A->B"). This means B doesn't have any of the checkin history from A. So if someone created a new file on branch A, you can't tell who created it from branch B. And if someone updated a file on A, you can't t...

What is a good repository layout for releases and projects in Subversion?

We have the standard Subversion trunk/branches/tags layout. We have several branches for medium- and long-term projects, but none so far for a release. This is approaching fast. Should we: Mix release branches and project branches together? Create a releases folder? If so, is there a better name than releases? Create a projects folder...

Changing the Directory Structure in Subversion

How do I create a branch in subversion that is deeper than just the 'branches' directory? I have the standard 'trunk', 'tags' and 'branches' structure and I want to create a branch that is several directories deeper than the 'branches' tag. Using the standard svn move method, it gives me a 'folder not found' error. I also tried copying...

Cross-Branch merging in TFS?

Is it possible to merge to a branch that is not a direct parent or child in TFS? I suspect that the answer is no as this is what I've experienced while using it. However, it seems that at certain times it would be really useful when there are different features being worked on that may have different approval cycles (ie. feature one mi...

How to get the changes on a branch in git

What is the best way to get a log of commits on a branch since the time it was branched from the current branch? My solution so far is: git log $(git merge-base HEAD branch)..branch The documentation for git-diff indicates that "git diff A...B" is equivalent to "git diff $(git-merge-base A B) B". On the other hand, the documentation f...

subversion tags and branches

Has anybody come up with a better technique for managing tags and branches in subversion than what is generally recommended (the parallel directories called 'tags' and 'branches')? ...

What's the right way to branch with Visual Source Safe?

What I currently do is I link the project to another location and give it the same name, then check the box where it says "Branch after share." And then I would Check out the shared project and work off it. And finally merge with the original project. This works okay, but it feels very clunky: I have multiple instances of the project o...

What is a good, non-distributed, alternative to subversion that has excellent branching and merging support?

I'm sick and tired of manually tracking my branches and merges across my repository! It's too error prone. In a world where everyone seems to get the idea of reducing duplication and automating everything, subversion branching/merging feels like it's left over from the 80's. What is a good alternative to subversion that has excellent bra...

light-version of a repository/branch in git

Hello, I am using git on a project, that generates lots of data-files (simulation-results). I am "forced" to version and track all those results in the same repository. (This is a hard requirement and can not be changed) However I don't need them. We have about 50 MB for the project and 5 GB results in the repository. Is it feasible f...

Subversion Branch Reintegration

When a branch is reintegrated to the trunk, is that branch effectively dead? Can you make modifications to the branch after the reintegration and merge those back into the trunk at a later date? ...

CVS: Replace HEAD with a branch.

How do I replace the HEAD of a CVS repository with a branch? ...

error when switching to different svn branch

I've got two SVN branches (eg development and stable) and want to switch from one to another... In every tutorial there is command like: rootOfLocalSvnCopy:>svn switch urlToNewBranch . But it leads in error in my case: svn: REPORT request failed on '/svn/rootOfLocalSvnCopy/!svn/vcc/default' svn: Cannot replace a directory from within ...

In P4V, how do I create a branch from a label?

The company just imported our CVS repository into Perforce. I'm new to P4V and I can't work out how to create a branch from an existing label. Can anyone tell me how to do this? ...

Can I unshelve to a different branch in tfs 2008?

Let's assume that some developer in my team shelved his changes that he did in branch A. And I am working on branch B. Can I unshelve his changes into branch B? (By GUI or command prompt) ...

How do I branch an individual file in SVN?

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 b...

How to refactor in a branch without losing my mind?

I refactor my and other people's code all the time. When I work in a branch and not in Trunk, this sometimes results in some extremely painful merges, especially if I don't merge back to Trunk regularly (the code at the branch slowly shifts away from the Trunc, and when people modify Trunk I have to figure out manually how to apply this ...

Good tool for drawing SCM code branch diagrams

Does anyone know a good tool for drawing SCM codeline diagrams? Currently we tend to do this using anything at hand e.g. PowerPoint, Visio, Paint Shop Pro, etc. It's a pity Visio doesn't include a standard stencil for this type of diagram. We use Perforce which includes tools for producing branching diagrams, but really suited to single...