Wiki source for SubVersionRevisions
===Subversion Revisions===
Many subversion commands allow you to specify a revision or revisions
%%
-r [--revision] arg (some commands also take ARG1:ARG2 range)
%%
revision argument(s) can be:
- N revision number
- '{' DATE '}' revision at start of the date
- 'BASE' base rev of item's working copy
- 'HEAD' latest in repository
To find differences between your (modified) working copy and latest (updated) in repository try
%%
$ svn diff -rHEAD myfile.php
%%
or to find differences between the base rev of your working copy and latest (updated) in repository try
%%
$ svn diff -rBASE:HEAD myfile.php
%%
or between a date in the past and the latest in the repository
%%
$ svn diff -r{20080801}:HEAD myfile.php
%%
or between two dates
%%
$ svn diff -r{20080801}:{20080808} myfile.php
%%
---
Many subversion commands allow you to specify a revision or revisions
%%
-r [--revision] arg (some commands also take ARG1:ARG2 range)
%%
revision argument(s) can be:
- N revision number
- '{' DATE '}' revision at start of the date
- 'BASE' base rev of item's working copy
- 'HEAD' latest in repository
To find differences between your (modified) working copy and latest (updated) in repository try
%%
$ svn diff -rHEAD myfile.php
%%
or to find differences between the base rev of your working copy and latest (updated) in repository try
%%
$ svn diff -rBASE:HEAD myfile.php
%%
or between a date in the past and the latest in the repository
%%
$ svn diff -r{20080801}:HEAD myfile.php
%%
or between two dates
%%
$ svn diff -r{20080801}:{20080808} myfile.php
%%
---