[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

question - diff with head

From: Ben Kim <bkim_at_tamu.edu>
Date: Sun, 30 Aug 2009 21:40:43 -0500 (CDT)

Hi,

svn, version 1.6.2 (r37639) on cygwin.

When I do diff st -u,
it shows that file1 is different in the repo. For example, it says

* 614 file1
Status against revision: 656
(* is the comment.)

Then when I do
     svn diff file1

it does not show the difference with version 656. It just shows whether I
have a local modification against the version I last updated to (614).

Only when I do
     svn diff -r656 file1

I get the difference.

Is this supposed to be? Is there a switch to make this happen without
-r656?

http://svnbook.red-bean.com/en/1.0/re09.html
says "If either N or M are omitted, a value of HEAD is assumed."

but it seems not happening on my svn.

Thanks.

Ben Kim

On Fri, 21 Aug 2009, Jason Malinowski wrote:

> Also if this is public-facing, make sure you have the .svn directories
> blocked off at the HTTP server level. Otherwise the user could do something
> like:
>
> www.example.com/.svn/text-base/<filename>
>
> Now if everything under your webroot is just the stuff like stylesheets it's
> not a big deal, but if the .svns are visible it at least gives potential
> hackers knowledge of your repository URLs.
>
> Which webserver is hosting the files (not the repository)? If apache, try
> this:
>
> http://www.ducea.com/2006/08/11/apache-tips-tricks-deny-access-to-some-folde
> rs/
>
> Jason Malinowski
>
>
>> -----Original Message-----
>> From: Dan King [mailto:dan.king106_at_yahoo.com]
>> Sent: Thursday, August 20, 2009 1:51 PM
>> To: users_at_subversion.tigris.org
>> Subject: Clarification on checkout and post-commit update hook
>>
>> I just installed and setup subversion on a windows server. I'd like to
>> configure svn so that every 'commit' is reflected via update in the
>> appropriate folder within the (web) server. The directory structure of
> the
>> repository is below, and this structure is mimicked by the htdocs folder.
>> When I checkout the folders/files from the repository into the web
> server's
>> htdocs directory (i.e. the web server's 'working' directory), is there any
>> particular way I should perform the checkout? Also, from my readings, I
>> understand that I'll need a post-commit update hook; I'm not familiar with
>> batch files so if anyone has done this before or knows of a good example
>> please let me knows. Thanks.
>>
>> repo/
>> | trunk/
>> | | application/
>> | | | models/
>> | | | views/
>> | | | controllers/
>> | |
>> | | public/
>> | | | stylesheets/
>> | | | javascripts/
>> | | | images/
>>
>> htdocs/
>> | application/
>> | | models/
>> | | views/
>> | | controllers/
>> |
>> | public/ <--- web root
>> | | stylesheets/
>> | | javascripts/
>> | | images/
>>
>> -Dan
>>
>> ------------------------------------------------------
>>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=23
> 8
>> 5793
>>
>> To unsubscribe from this discussion, e-mail: [users-
>> unsubscribe_at_subversion.tigris.org].
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2385909
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2388727

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-31 04:50:03 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.