Is there a way to find the differences between the trunk
and say a branch 0.4.x
?
I need to create a tag - however I can't remember if my latest corrections were done in the trunk or the branch.
Trunk-based development (TBD) is a branching model for software development where developers merge every new feature, bug fix, or other code change to one central branch in the version control system. This branch is called “trunk”, “mainline”, or in Git, the “master branch”.
Trunk-based development is a branching model that is also referred to as “mainline development.” All branches extend from one trunk/main branch, usually called the master branch. This persistent branch is where all developers commit. The master branch follows the evolution of a software project.
The trunk is the main line of development in a SVN repository. A branch is a side-line of development created to make larger, experimental or disrupting work without annoying users of the trunk version.
If you have a checkout of the repository at hand, you can use the ^
(caret, search for it in the manual) notation to reference the root of the repo like this:
svn diff --old ^/branches/0.4.x --new ^/trunk
This works since Subversion 1.6.
If you have an older subversion or no handy checkout of the repo, you can use absolute paths, as described in the original redbook:
svn diff --old http://.../repo/branches/0.4.x --new http://.../repo/trunk/
should give you the answer you're looking for.
Replace http://.../repo/
with the actual URL of your repository.
svn diff ^/trunkUrl/fileName ^/branchUrl/fileName
This will give you the difference between a file in branch and trunk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With