Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you `svn status` the remote repository instead of you local working copy? [duplicate]

Tags:

svn

Is there an svn command to check which files would be downloaded from the remote repository if one should issue an svn update?

like image 778
Petruza Avatar asked Nov 24 '11 14:11

Petruza


People also ask

Which is the svn command to see the list of changes made in a working copy before committing to the repository?

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.

What is working copy in svn?

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.

How do I find my svn working copy?

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.

Can we create remote repository in svn?

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.


2 Answers

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

like image 72
jv42 Avatar answered Sep 28 '22 01:09

jv42


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 .
like image 26
borrible Avatar answered Sep 28 '22 01:09

borrible