Is there a default Bazaar Git fork forks?

Using git, I can create branches conceptually without having to fork my directory structure. When I switch between branches (assuming everything has been fixed), it will change the contents of the files I'm working on to reflect what has the status of the "current" branch.

I really like being able to do this - it fits my workflow very well, especially when I use, say, Visual Studio.

But I'm a fanatic in the market. I like that it is written mainly in Python, I like how nice and simple (for me) the graphical interface, and I like that it is very cross-platform.

So, my desire is that it is possible, and my question is: can Bazaar do / emulate git behavior? If so, how?

+4
source share
1 answer

I use (heavy) checks in Bazaar, so I'm not sure if this will be exactly the same for you, but you have to do it with the switch command. For instance:

 mkdir source-repo bzr init-repo --no-trees source-repo bzr init source-repo/trunk bzr co source-repo/trunk workdir cd workdir # Hack hack hack bzr add bzr ci -m "Done some stuff" # Now create a branch and change the working directory files to match it bzr switch -b my-new-branch # We're now working on a checkout of ../source-repo/my-new-branch # Hack hack hack bzr add bzr ci -m "Working on the branch" # Now go back to the trunk (no -b as we're not creating the branch) bzr switch trunk # Working directory files now match the trunk branch # Hack hack hack bzr add bzr ci -m "Changes to trunk" # Merge in the changes from my-new-branch bzr merge ../source-repo/my-new-branch bzr ci -m "Merged my-new-branch" 

You can, of course, also use the absolute path to the branches, but relative ones save a lot of typing. Unfortunately, the merge team requires a full path.

Is this what you are looking for?

+3
source

Source: https://habr.com/ru/post/1316201/


All Articles