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

Re: a question on svn import

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Sat, 18 Jul 2009 04:59:14 -0500

On Jul 18, 2009, at 04:34, fengbin wrote:

> On Sat, Jul 18, 2009 at 4:59 PM, Ryan Schmidt wrote:
>
>> On Jul 18, 2009, at 03:24, fengbin wrote:
>>
>>> While I was importing code via "svn import " I found all added
>>> files and directories are recorded into log.
>>>
>>> So when I use svn log -v to check log later the log information
>>> is very long if I imported a big package of source code ?
>>>
>>> Is there a way of fixing this?
>>
>> Well, the purpose of the "-v" switch to "svn log" is to show the
>> files and directories that were a part of that revision. So, what
>> you're seeing is the correct behavior. If you don't want the list
>> of files and directories, don't use the "-v" switch.
>
> But I want to check detailed information sometime eg.which files
> are modified as well.

Then I would recommend you use the "-v" flag when you want that
information, and don't use the "-v" flag when you don't want that
information.

> Is there a way of remove some specific log eg. the initiate log
> generated by svn import.?

I don't think there's a way to do that. "svn import" is nothing
special; it creates a revision in the repository, just like "svn
commit" would. A revision in a repository affects certain files and
directories. "svn log -v" shows the files and directories that are
affected by the revision.

The files and directories listed by "svn log -v" are prefixed with a
character saying what happened -- "A" for "add", "M" for "modified".
Perhaps you would just like to suppress all the lines for files that
were added? If so, you could write a small script to do that. For
example:

svn log -v | grep -v "^ A"

(Runs a verbose log, and pipes the output to a grep command which
excludes lines beginning with three spaces followed by "A".)

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-18 12:00:16 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.