Questions tagged [revision]

Revision: A release of a piece of software which is not a major release or a bugfix, but only introduces small changes or new features.

A release of a piece of software which is not a major release or a bugfix, but only introduces small changes or new features.

Reference: http://www.diclib.com/revision/show/en/en_foldoc/R/664/300/0/6/10947

470 questions
986
votes
26 answers

How do I get the Git commit count?

I'd like to get the number of commits of my Git repository, a bit like SVN revision numbers. The goal is to use it as a unique, incrementing build number. I currently do like that, on Unix/Cygwin/msysGit: git log --pretty=format:'' | wc -l But I…
Splo
  • 10,544
  • 4
  • 19
  • 16
817
votes
7 answers

Go to particular revision

I cloned a git repository of a certain project. Can I turn the files to the initial state and when I review the files go to revision 2, 3, 4 ... most recent? I'd like to have an overview of how the project was evolving.
xralf
  • 3,312
  • 45
  • 129
  • 200
522
votes
20 answers

How to clone git repository with specific revision/changeset?

How can I clone git repository with specific revision, something like I usually do in Mercurial: hg clone -r 3 /path/to/repository
John
  • 5,223
  • 3
  • 16
  • 4
162
votes
6 answers

How do I view an older version of an SVN file?

I have an SVN file which is now missing some logic and so I need to go back about 40 revisions to the time when it had the logic I need. Other than trying to view a diff of the file in the command line (very hard to read), is there any way I could…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
137
votes
8 answers

Print Current Mercurial Revision Hash?

Is there a better way extract the current revision hash in Mercurial than hg log -l1|grep changeset|cut -d: -f3 ? Part of my webapp deployment script "tags" the uploaded app tarball with its unique revision hash.
rentzsch
  • 3,548
  • 4
  • 27
  • 39
112
votes
4 answers

How to view revision history for Mercurial file?

For a given file in a Mercurial repository, how can you see the revision history? And how can you diff two revisions of the file? Ideally doing all this with visual tools (we use ExamDiff to do some other diffs). I'd say this is basic source…
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429
68
votes
6 answers

Find revision in trunk that a branch was created from

I am trying to merge the latest changes from trunk into a branch of my project, but the problem is I don't know what revision of the trunk I checked out that I eventually created the branch from. I would think SVN logged this somewhere. Does…
Andy
  • 7,885
  • 5
  • 55
  • 61
65
votes
6 answers

Reverting to a previous revision using TortoiseSVN

What is the easiest way to revert my working copy to a previous revision using Windows TortoiseSVN? I did not find any "findable" command to do that quickly.
Ricardo Alamino
  • 749
  • 1
  • 5
  • 11
59
votes
5 answers

failed to find Build Tools revision 21.1.1 - sdk up to date

I´m running a linux android sdk installation and my new project needs Build tools 21.1.1 Somehow, this build tools do not exist, eventhough my sdk is up to date, but in the build-tools folder there is now android-4.4W folder android update sdk…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
43
votes
8 answers

How can I delete a specific revision of a github gist?

I created a Gist on GitHub and I saw information I don't want anyone to see. I updated the file since, but everybody can still access the old revision of the file. Except deleting the Gist, is there a way to delete that particular revision…
Cyril N.
  • 38,875
  • 36
  • 142
  • 243
42
votes
5 answers

Get changed files from SVN command line between two revisions

I need to get the changed files list between two revisions in SVN. I have used the following command: svn diff -r 5001:6001 --summarize https://svn.blah.com/../ > output.txt For some reason, the files modified on revision 5001 are not populated in…
Madhan
  • 1,291
  • 3
  • 21
  • 34
42
votes
3 answers

SVN: How to get the first revision of a file?

When working with a subdirectory in a repository, how to find the revision when that specific directory has been added to the repository? By using "svn info http://.." I can find out when it was modified for the last time ("Last Changed Rev"), but I…
Oliver Maksimovic
  • 3,204
  • 3
  • 28
  • 44
41
votes
7 answers

Getting the subversion repository number into code

I'd like to implement a way of recording the version of a project within code, so that it can be used when testing and to help track bugs. It seems the best version number to use would just be the current revision number from Subversion. Is there…
Ali Parr
  • 4,737
  • 3
  • 31
  • 35
39
votes
5 answers

Git (TortoiseGit) - How to revert a single file to a previous revision and then undo the revert?

When using Git with TortoiseGit: Does somebody know how to revert a single file(or a complete repository) to a previous revision? For example I have a repository containing multiple files. One file exists in three revisions (1 ; 2 ; 3). Now I want…
Alexander
  • 3,724
  • 8
  • 42
  • 50
37
votes
12 answers

Are there revision control systems for images?

I would make crazy use of such a revision control. If it doesn't exist - where would to a good starting point for building one? I can probably make a lot of designs and interaction flows, but to implement it is another thing. Would it be a good…
meilas
  • 503
  • 1
  • 5
  • 12
1
2 3
31 32