How NOT to ignore a single file in Subversion?

svn propset svn:ignore "filename"

You might think that’s what you want to do.

However, you will get something like:

~/www/spacevictory pirkka$ svn propset svn:ignore log/call_graph.html
subversion/clients/cmdline/propset-cmd.c:149: (apr_err=205001)
svn: Explicit target required ('log/call_graph.html' interpreted as prop value)

At which point you realise that you are confused about how svn ignore works.

You will study the relevant section in the svn book and type

svn propedit svn:ignore log

and use a default text editor to add the ignored file name/type to the ignored properties of the directory.

Wasn’t that easy, was it? Is there a shortcut that doesn’t involve an editor?

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.