Is there an svn
command to check which files would be downloaded from the remote repository if one should issue an svn update
?
Use svn status command to get the status of the file in the working copy. It displays whether the working copy is modified, or its been added/deleted, or file is not under revision control, etc. 'M' represents that the item has been modified.
A working copy is a directory that contains a collection of files which you can use as your private work area, as well as some extra files, created and maintained by Subversion. For example, each directory in your working copy contains an administrative directory named . svn.
Use the command line svn client or your favorite SVN client (TortoiseSVN, for example). Your local copy of the project is called a working copy in Subversion and you get it by issuing the command svn checkout <URL> where <URL> is a repository URL.
I believe you need to use svnadmin from the server (over ssh or similar) to create a repository. from which you can import and commit code into. I import a 'skeleton directory' (consisting of trunk, branches and tags directories) and then checkout into my working copy.
Found it:
http://svnbook.red-bean.com/nightly/en/svn.ref.svn.html#svn.ref.svn.sw.show_updates
svn status --show-updates
Maybe you could use a specific svn info
too?
http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.info.html
SVN does offer a --dry-run
option but unfortunately this does not work with svn update
. You can however mimic the behaviour of svn update
using svn merge
appropriately and that does support the option.
So, use the following:
svn merge --dry-run -r BASE:HEAD .
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