You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Matthew Smith <ch...@gmail.com> on 2008/07/23 20:40:02 UTC

--dry-run

I was reading through the subversion book at
http://svnbook.red-bean.com/en/1.0/ch09.html and came across the
"--dry-run" command.  The book says that it "Goes through all the
motions of running a command, but makes no actual changes—either on
disk or in the repository."  This seems pretty useful as I am still
learning my way around and don't want to screw things up.

However, I tried it with two command and got the same error:
svn update --dry-run
Subcommand 'update' doesn't accept option '--dry-run'
Type 'svn help update' for usage.

svn ci --dry-run
Subcommand 'commit' doesn't accept option '--dry-run'
Type 'svn help commit' for usage.

What am I doing wrong?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Current subversion books not being indexed by google? (was Re: --dry-run)

Posted by Andy Levy <an...@gmail.com>.
On Thu, Jul 24, 2008 at 06:33, Jan Hendrik <li...@gmail.com> wrote:
> Concerning Current subversion books not being
> Benjamin Smith-Mannschott wrote on 24 Jul 2008, 11:55, at least in part:
>
>> Google seems to like the old verisons of the book overly much.  When I
>>  do a search for "subversion cheap copies" (as I did a while back in
>> answering a question on the list) I get a deep link into the 1.1 book.
>>
>> I don't suppose there's much that can be done about this though, is
>> there?
>
> Well, there's nothing that is guaranteed to work or cause Google or
> other searchengines to index or not to index or to remove
> indexed pages, but there are a few things which could be done:
>
> A) at the root of svnbook.red-bean.com create a file "robots.txt"
> with the following content:
>
> User-agent: *
> Disallow: /en/1.0/      <=      or whatever directory shall not be snooped
>                                                into.  Multiple "Disallow:"s allowed
>
> Instead of the * the Google bot name can be entered (Google for
> them names or check the server log files!)
>
> B) in the headers of all pages which *should not* be indexed add
> the line
>
> <meta name="robots" content="noindex,follow">
>
> or even
>
> <meta name="robots" content="noindex,nofollow">
>
> C) add a Google sitemap and notify Google by using their
> sitemap_gen.py script (from Google Webmaster Tools)
>
> The script can be patched to also notify some other searchengines
> accepting sitemaps:
>
> NOTIFICATION_SITES = [
>  ('http', 'www.google.com', 'webmasters/sitemaps/ping', {}, '', 'sitemap'),
>  ('http', 'search.yahooapis.com', 'SiteExplorerService/V1/ping', {}, '', 'sitemap'),
>  ('http', 'api.moreover.com', 'ping', {}, '', 'sitemap'),
>  ('http', 'submissions.ask.com', 'ping', {}, '', 'sitemap')
>  ]
>
> and a line in robots.txt can also be added so even more bots
> become aware of the sitemap:
>
> Sitemap: http://svnbook.red-bean.com/sitemap.xml.gz
>
>
> Be aware that these are no guarantee of whatsoever.  Also, at least
> A & B would exclude the old book versions from being indexed at
> all, what may or may not be in the interest of the owners.  For C
> the configuration for sitemap_gen.py would allow more options, but
> again these are just hints for the searchengine, no definitive order.

D) Modify the manual pages to indicate what version of the manual
you're looking at. With the really old ones (1.0 through 1.3), perhaps
a big red banner on the top reading "this content is probably out of
date for the version of Subversion you're running".

Really, any hint of which version of a random page you're looking at
other than just the URL.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Current subversion books not being indexed by google? (was Re: --dry-run)

Posted by Jan Hendrik <li...@gmail.com>.
Concerning Current subversion books not being 
Benjamin Smith-Mannschott wrote on 24 Jul 2008, 11:55, at least in part:

> Google seems to like the old verisons of the book overly much.  When I
>  do a search for "subversion cheap copies" (as I did a while back in 
> answering a question on the list) I get a deep link into the 1.1 book.
> 
> I don't suppose there's much that can be done about this though, is 
> there?

Well, there's nothing that is guaranteed to work or cause Google or 
other searchengines to index or not to index or to remove 
indexed pages, but there are a few things which could be done:

A) at the root of svnbook.red-bean.com create a file "robots.txt" 
with the following content:

User-agent: *
Disallow: /en/1.0/	<=	or whatever directory shall not be snooped
						into.  Multiple "Disallow:"s allowed

Instead of the * the Google bot name can be entered (Google for 
them names or check the server log files!)

B) in the headers of all pages which *should not* be indexed add 
the line

<meta name="robots" content="noindex,follow">

or even

<meta name="robots" content="noindex,nofollow">

C) add a Google sitemap and notify Google by using their 
sitemap_gen.py script (from Google Webmaster Tools)

The script can be patched to also notify some other searchengines 
accepting sitemaps:

NOTIFICATION_SITES = [
  ('http', 'www.google.com', 'webmasters/sitemaps/ping', {}, '', 'sitemap'),
  ('http', 'search.yahooapis.com', 'SiteExplorerService/V1/ping', {}, '', 'sitemap'),
  ('http', 'api.moreover.com', 'ping', {}, '', 'sitemap'),
  ('http', 'submissions.ask.com', 'ping', {}, '', 'sitemap')
  ]

and a line in robots.txt can also be added so even more bots 
become aware of the sitemap:

Sitemap: http://svnbook.red-bean.com/sitemap.xml.gz


Be aware that these are no guarantee of whatsoever.  Also, at least 
A & B would exclude the old book versions from being indexed at 
all, what may or may not be in the interest of the owners.  For C 
the configuration for sitemap_gen.py would allow more options, but 
again these are just hints for the searchengine, no definitive order.

Jan Hendrik
---------------------------------------
Freedom quote:

     The greatest Glory of a free-born People,
     is to transmit that Freedom to their Children.
               -- William Harvard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Current subversion books not being indexed by google? (was Re: --dry-run)

Posted by Benjamin Smith-Mannschott <bs...@gmail.com>.
On Jul 24, 2008, at 02:56, Ryan Schmidt wrote:

>
> On Jul 23, 2008, at 15:40, Matthew Smith wrote:
>
>> I was reading through the subversion book at
>> http://svnbook.red-bean.com/en/1.0/ch09.html
> [snip]
>
>
> FYI, you should probably read the released book for Subversion 1.4  
> or the in-progress book for 1.5, rather than the rather older 1.0  
> book.
>
> http://svnbook.red-bean.com/

Google seems to like the old verisons of the book overly much.  When I  
do a search for "subversion cheap copies" (as I did a while back in  
answering a question on the list) I get a deep link into the 1.1 book.

I don't suppose there's much that can be done about this though, is  
there?

Interestingly, if I google for something that's specific to the 1.5  
version of the book, google doesn't return a link to a page in the 1.5  
book:

http://www.google.at/search?q=subversion+book+%22Mergeinfo+and+Previews%22

I don't get any links into the 1.5 book.  Perhaps it isn't being  
picked up by google.

// Ben 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: --dry-run

Posted by Matthew Smith <ch...@gmail.com>.
Thank you.  I didn't realize there were different versions of the book.

On Wed, Jul 23, 2008 at 7:56 PM, Ryan Schmidt
<su...@ryandesign.com> wrote:
>
> On Jul 23, 2008, at 15:40, Matthew Smith wrote:
>
>> I was reading through the subversion book at
>> http://svnbook.red-bean.com/en/1.0/ch09.html
>
> [snip]
>
>
> FYI, you should probably read the released book for Subversion 1.4 or the
> in-progress book for 1.5, rather than the rather older 1.0 book.
>
> http://svnbook.red-bean.com/
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: --dry-run

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jul 23, 2008, at 15:40, Matthew Smith wrote:

> I was reading through the subversion book at
> http://svnbook.red-bean.com/en/1.0/ch09.html
[snip]


FYI, you should probably read the released book for Subversion 1.4 or  
the in-progress book for 1.5, rather than the rather older 1.0 book.

http://svnbook.red-bean.com/




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: --dry-run

Posted by Andy Levy <an...@gmail.com>.
On Wed, Jul 23, 2008 at 16:40, Matthew Smith <ch...@gmail.com> wrote:
> I was reading through the subversion book at
> http://svnbook.red-bean.com/en/1.0/ch09.html and came across the
> "--dry-run" command.  The book says that it "Goes through all the
> motions of running a command, but makes no actual changes—either on
> disk or in the repository."  This seems pretty useful as I am still
> learning my way around and don't want to screw things up.
>
> However, I tried it with two command and got the same error:
> svn update --dry-run
> Subcommand 'update' doesn't accept option '--dry-run'
> Type 'svn help update' for usage.

Try svn st -u . That will check the server and list for you both your
changes that have yet to be committed, and committed changes in the
repository which have yet to be updated into your WC.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: --dry-run

Posted by Matthew Smith <ch...@gmail.com>.
Awesome, thank you.

On Wed, Jul 23, 2008 at 3:41 PM, Mark Phippard <ma...@gmail.com> wrote:
> On Wed, Jul 23, 2008 at 4:40 PM, Matthew Smith <ch...@gmail.com> wrote:
>> I was reading through the subversion book at
>> http://svnbook.red-bean.com/en/1.0/ch09.html and came across the
>> "--dry-run" command.  The book says that it "Goes through all the
>> motions of running a command, but makes no actual changes—either on
>> disk or in the repository."  This seems pretty useful as I am still
>> learning my way around and don't want to screw things up.
>>
>> However, I tried it with two command and got the same error:
>> svn update --dry-run
>> Subcommand 'update' doesn't accept option '--dry-run'
>> Type 'svn help update' for usage.
>>
>> svn ci --dry-run
>> Subcommand 'commit' doesn't accept option '--dry-run'
>> Type 'svn help commit' for usage.
>>
>> What am I doing wrong?
>
> That option only applies to the merge command.
>
>
> --
> Thanks
>
> Mark Phippard
> http://markphip.blogspot.com/
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: --dry-run

Posted by Mark Phippard <ma...@gmail.com>.
On Wed, Jul 23, 2008 at 4:40 PM, Matthew Smith <ch...@gmail.com> wrote:
> I was reading through the subversion book at
> http://svnbook.red-bean.com/en/1.0/ch09.html and came across the
> "--dry-run" command.  The book says that it "Goes through all the
> motions of running a command, but makes no actual changes—either on
> disk or in the repository."  This seems pretty useful as I am still
> learning my way around and don't want to screw things up.
>
> However, I tried it with two command and got the same error:
> svn update --dry-run
> Subcommand 'update' doesn't accept option '--dry-run'
> Type 'svn help update' for usage.
>
> svn ci --dry-run
> Subcommand 'commit' doesn't accept option '--dry-run'
> Type 'svn help commit' for usage.
>
> What am I doing wrong?

That option only applies to the merge command.


-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org