Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn: changeset = revision?

Tags:

svn

I wonder if these words are synonymous with each other?

like image 993
never_had_a_name Avatar asked Apr 02 '10 00:04

never_had_a_name


People also ask

What is svn changeset?

In more common speak, a changeset is just a patch with a name you can refer to. In Subversion, a global revision number N names a tree in the repository: it's the way the repository looked after the Nth commit.

How do I revert to a specific revision in svn?

Right click on the selected revision(s), then select Context Menu → Revert changes from this revision. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context Menu → Revert to this revision. This will discard all changes after the selected revision.

How do I get latest revision in svn?

svn update brings changes from the repository into your working copy. If no revision is given, it brings your working copy up to date with the HEAD revision. Otherwise, it synchronizes the working copy to the revision given by the --revision ( -r ) option.

What is changeset in version control?

In version control software, a changeset is a formally collected set of commits that should be treated as a group. Examples of changesets could be: The changes between two successive versions of a repository (an atomic package). The commits involved in releasing a certain feature.


2 Answers

Not really. A changeset is (as the name implies) a set of changes, whereas a revision is the state of the code base at a particular juncture.

A changeset is applied to one revision in order to produce a new revision.

A revision can thus be thought of as the cumulative effect of a sequence of changesets.

Having said all that, the term revision is often used as a synonym for changeset, ("Did you see my revision? It adds some new files."), but I find that usage ambiguous and confusing.

like image 121
Marcelo Cantos Avatar answered Oct 26 '22 00:10

Marcelo Cantos


Yes, they are equivalent terms for most uses.

When you're getting "changeset" 5100 or "revision" 5100, you're discussing the same thing. A changeset is technically the changes contained there-in (same with most source control systems) and revision is technically the version after the changeset is applied, but most of the time, you're talking about the same thing.

like image 45
Nick Craver Avatar answered Oct 25 '22 22:10

Nick Craver