mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-19 18:38:55 +00:00
124 lines
2.7 KiB
XML
124 lines
2.7 KiB
XML
![]() |
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!-- $Revision: 1.1 $ -->
|
||
|
|
||
|
<refentry xml:id="function.svn-blame" xmlns="http://docbook.org/ns/docbook">
|
||
|
<refnamediv>
|
||
|
<refname>svn_blame</refname>
|
||
|
<refpurpose>Get the SVN blame for a file</refpurpose>
|
||
|
</refnamediv>
|
||
|
|
||
|
<refsect1 role="description">
|
||
|
&reftitle.description;
|
||
|
<methodsynopsis>
|
||
|
<type>array</type><methodname>svn_blame</methodname>
|
||
|
<methodparam><type>string</type><parameter>repository_url</parameter></methodparam>
|
||
|
<methodparam choice="opt"><type>int</type><parameter>revision_no</parameter></methodparam>
|
||
|
</methodsynopsis>
|
||
|
<para>
|
||
|
Get the SVN blame of a file from a repository URL.
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
<refsect1 role="parameters">
|
||
|
&reftitle.parameters;
|
||
|
<para>
|
||
|
<variablelist>
|
||
|
<varlistentry>
|
||
|
<term><parameter>repository_url</parameter></term>
|
||
|
<listitem>
|
||
|
<para>
|
||
|
The repository URL.
|
||
|
</para>
|
||
|
</listitem>
|
||
|
</varlistentry>
|
||
|
<varlistentry>
|
||
|
<term><parameter>revision_no</parameter></term>
|
||
|
<listitem>
|
||
|
<para>
|
||
|
The revision number.
|
||
|
</para>
|
||
|
</listitem>
|
||
|
</varlistentry>
|
||
|
</variablelist>
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
<refsect1 role="returnvalues">
|
||
|
&reftitle.returnvalues;
|
||
|
<para>
|
||
|
An <type>array</type> of SVN blame information separated by line
|
||
|
which includes the revision number, line number, line of code,
|
||
|
author, and date.
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
<refsect1 role="examples">
|
||
|
&reftitle.examples;
|
||
|
<para>
|
||
|
<example>
|
||
|
<title><function>svn_blame</function> example</title>
|
||
|
<programlisting role="php">
|
||
|
<![CDATA[
|
||
|
<?php
|
||
|
$svnurl = 'http://svn.example.org/svnroot/foo/trunk/index.php';
|
||
|
|
||
|
print_r( svn_blame($svnurl) );
|
||
|
|
||
|
?>
|
||
|
]]>
|
||
|
</programlisting>
|
||
|
&example.outputs.similar;
|
||
|
<screen>
|
||
|
<![CDATA[
|
||
|
Array
|
||
|
(
|
||
|
[0] = Array
|
||
|
(
|
||
|
[rev] = 1
|
||
|
[line_no] = 1
|
||
|
[line] = Hello World
|
||
|
[author] = joesmith
|
||
|
[date] = 2007-07-02T05:51:26.628396Z
|
||
|
)
|
||
|
[1] = Array
|
||
|
...
|
||
|
]]>
|
||
|
</screen>
|
||
|
</example>
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
<refsect1 role="seealso">
|
||
|
&reftitle.seealso;
|
||
|
<para>
|
||
|
<simplelist>
|
||
|
<member><function>svn_diff</function></member>
|
||
|
<member><function>svn_logs</function></member>
|
||
|
<member><function>svn_status</function></member>
|
||
|
</simplelist>
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
</refentry>
|
||
|
|
||
|
<!-- Keep this comment at the end of the file
|
||
|
Local variables:
|
||
|
mode: sgml
|
||
|
sgml-omittag:t
|
||
|
sgml-shorttag:t
|
||
|
sgml-minimize-attributes:nil
|
||
|
sgml-always-quote-attributes:t
|
||
|
sgml-indent-step:1
|
||
|
sgml-indent-data:t
|
||
|
indent-tabs-mode:nil
|
||
|
sgml-parent-document:nil
|
||
|
sgml-default-dtd-file:"../../../../manual.ced"
|
||
|
sgml-exposed-tags:nil
|
||
|
sgml-local-catalogs:nil
|
||
|
sgml-local-ecat-files:nil
|
||
|
End:
|
||
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
|
vim: et tw=78 syn=sgml
|
||
|
vi: ts=1 sw=1
|
||
|
-->
|