Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Collins-Sussman B.Version control with Subversion 1.1.pdf
Скачиваний:
9
Добавлен:
23.08.2013
Размер:
1.53 Mб
Скачать

Subversion Complete Reference

Name

svnlook history -- Print information about the history of a path in the repository (or the root directory if no path is supplied).

svnlook history

Synopsis

svnlook history REPOS_PATH [PATH_IN_REPOS]

Description

Print information about the history of a path in the repository (or the root directory if no path is supplied).

Switches

--revision (-r) --show-ids

Examples

This shows the history output for the path /tags/1.0 as of revision 20 in our sample repository.

$ svnlook history

-r 20 /usr/local/svn/repos /tags/1.0 --show-ids

REVISION

PATH <ID>

--------

---------

19

/tags/1.0 <1.2.12>

17

/branches/1.0-rc2 <1.1.10>

16

/branches/1.0-rc2 <1.1.x>

14

/trunk

<1.0.q>

13

/trunk

<1.0.o>

11

/trunk

<1.0.k>

9

/trunk

<1.0.g>

8

/trunk

<1.0.e>

7

/trunk

<1.0.b>

6

/trunk

<1.0.9>

5

/trunk

<1.0.7>

4

/trunk

<1.0.6>

2

/trunk

<1.0.3>

1

/trunk

<1.0.2>

245

Subversion Complete Reference

Name

svnlook info -- Print the author, datestamp, log message size, and log message. svnlook info

Synopsis

svnlook info REPOS_PATH

Description

Print the author, datestamp, log message size, and log message.

Switches

--revision (-r) --transaction (-t)

Examples

This shows the info output for revision 40 in our sample repository.

$ svnlook info -r 40 /usr/local/svn/repos sally

2003-02-22 17:44:49 -0600 (Sat, 22 Feb 2003) 15

Rearrange lunch.

246

Subversion Complete Reference

Name

svnlook log -- Print the log message. svnlook log

Synopsis

svnlook log REPOS_PATH

Description

Print the log message.

Switches

--revision (-r) --transaction (-t)

Examples

This shows the log output for revision 40 in our sample repository:

$ svnlook log /tmp/repos/ Rearrange lunch.

247

Subversion Complete Reference

Name

svnlook propget -- Print the raw value of a property on a path in the repository. svnlook propget

Synopsis

svnlook propget REPOS_PATH PROPNAME [PATH_IN_REPOS]

Description

List the value of a property on a path in the repository.

Alternate Names

pg, pget

Switches

--revision (-r) --transaction (-t)

Examples

This shows the value of the “seasonings” property on the file /trunk/sandwich in the HEAD revision:

$ svnlook pg /usr/local/svn/repos seasonings /trunk/sandwich mustard

248

Subversion Complete Reference

Name

svnlook proplist -- Print the names and values of versioned file and directory properties. svnlook proplist

Synopsis

svnlook proplist REPOS_PATH [PATH_IN_REPOS]

Description

List the properties of a path in the repository. With --verbose, show the property values too.

Alternate Names

pl, plist

Switches

--revision (-r) --transaction (-t) --verbose (-v)

Examples

This shows the names of properties set on the file /trunk/README in the HEAD revision:

$ svnlook proplist /usr/local/svn/repos /trunk/README original-author

svn:mime-type

This is the same command as in the previous example, but this time showing the property values as well:

$ svnlook --verbose proplist /usr/local/svn/repos /trunk/README original-author : fitz

svn:mime-type : text/plain

249

Соседние файлы в предмете Электротехника