mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
initial commit
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@269080 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c832af7407
commit
30a40cbe2f
1 changed files with 123 additions and 0 deletions
123
reference/svn/functions/svn-blame.xml
Normal file
123
reference/svn/functions/svn-blame.xml
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?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
|
||||
-->
|
Loading…
Reference in a new issue