How to make a tag in SVN using eclipse?

I use eclipse, and Subversion (SVN) is my new version control.

So far I have used the Concurrent Versions System (CVS) as my version control, and after the deployment operation, I used my projects with Tag as Version in eclipse for tags as follows:
Team → 'Tag as Version ..' → Version-XYZ

How can I do this now using SVN ?

+6
source share
5 answers

You will need to install the Eclipse Subversion plugin, such as subclipse or Subversive . This will provide the same features as CVS.

For example, here is the documentation on how to tag using Subversive.

+4
source

Usually SVN has three root directories,

  • trunk
  • tags
  • branches

In the SVN server for each project you have the same directory structure.

'trunk' is where you keep your ever-evolving code base.

'tags' is used for the same purpose that you specified. that is, for version control.

"branches" are used for things like development of events / individual development.

Example, Let's say I'm developing a database synchronization application that will be released as a Pilot release, Moonshine release, Kilimanjaro release, an excellent release, and more.

I start in the trunk and continue development, let them say 2 months when I am ready to release Pilot.

Then I create a "tag" trunk, which I can call a "Pilot tag" that will be released to customers.

Now my main features for the next release, which is the “Moonshine release,” will be continued in the trunk. If in their "Pilot release" some bugs or demo plugs are fixed, they will be executed in the "Pilot" tag and will be immediately sent to customers.

However, since the above fixes are not in my "trunk" code, after a while (before the Moonshine release), I will "merge" the changes made in my "Pilot" tag back into the "trunk".

There may be conflicts, because the same lines of code could be changed both in the “Pilot tag” (to fix errors mentioned earlier) and in “trunk” (for updating / developing a new version). In this situation, you must carefully review the conflicts, edit any such conflicts, and accept the changes.

TortoiseSVN is the main client tool for using SVN. It embeds functions directly in your right-click menu for all the above functions, such as commit, update, merge, branch (i.e. Tag or branch), etc.

And to resolve conflicts, I personally prefer Beyond Compare, which is a third-party application that you have to buy. You can configure TortoiseSVN to invoke Beyond Compare as a conflict resolution application, and it is much better and more user friendly than the built-in conflict editor in the TortoiseSVN tool.

+7
source

In a TAG using Eclipse with SubClipse :

  • select Team, Branch / Tag, then click on the "Select" button and check the appropriate project, then click on the "tag directory" and expand to your last tag name or any similar name that you plan to create.

  • The full URL is copied to the panel, then you can edit it by changing part of the name of the rightmost tag to any new tag name.

  • Click "Next", select "HEAD" ("HEAD" refers to the repo path that you already installed on the previous page, so it can actually be the head of the branch).

  • Enter a comment, for example 'tagging <appName> Release <for reason> version xyz'

Done -

You can, until now or after that, open the Eclipse ' SVN Console ' drop-down list at the bottom of the page and view the last created SVN commands and get the results.

+3
source

Each check in SVN creates a new version number. The SVN version number should be equivalent to your tag. Remember the SVN version number for assembly assembly.

+1
source

Marking and branching in Subversion works differently than CVS. In Subversion, "creating a tag" means copying the revision (usually HEAD, but it may be a different version) to a new directory in the "tags" directory. That is why when you go to Team->Branch/Tag... , Eclipse asks you to copy the URL.

Open this page for a more detailed explanation of tags in Subversion.

To help you understand how the "SVN path" is, I would recommend using Subversion from the command line before trying it on Eclipse. Or, if not, at least open the SVN console in Eclipse to see the commands it executes - you will see that the tagging operation is indeed svn copy .

0
source

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


All Articles