Source

VersionControl_Hg / Trunk / Documentation / API / Html / __examplesource / exsource_pment__Webroot_Trunk_Tests_Functional_test_Log.php_2e12c79f6a4bbd6976f0b2eb6b2d7413.html

The default branch has multiple heads

Full commit
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Some examples to use</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<h1>Some examples to use</h1>
<div class="listing">
<div class="src-code"><ol><li><div class="src-line"><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line"><span class="src-comm">/*</span></div></li>
<li><div class="src-line"><span class="src-comm">&nbsp;*&nbsp;Test&nbsp;with&nbsp;safe_mode&nbsp;enabled!</span></div></li>
<li><div class="src-line"><span class="src-comm">&nbsp;*&nbsp;Note:&nbsp;When&nbsp;safe&nbsp;mode&nbsp;is&nbsp;enabled,&nbsp;you&nbsp;can&nbsp;only&nbsp;execute&nbsp;files&nbsp;within&nbsp;the&nbsp;safe_mode_exec_dir.&nbsp;For&nbsp;practical&nbsp;reasons,&nbsp;it&nbsp;is&nbsp;currently&nbsp;not&nbsp;allowed&nbsp;to&nbsp;have&nbsp;..&nbsp;components&nbsp;in&nbsp;the&nbsp;path&nbsp;to&nbsp;the&nbsp;executable.</span></div></li>
<li><div class="src-line"><span class="src-comm">&nbsp;*&nbsp;With&nbsp;safe&nbsp;mode&nbsp;enabled,&nbsp;the&nbsp;command&nbsp;string&nbsp;is&nbsp;escaped&nbsp;with&nbsp;escapeshellcmd().&nbsp;Thus,&nbsp;echo&nbsp;y&nbsp;|&nbsp;echo&nbsp;x&nbsp;becomes&nbsp;echo&nbsp;y&nbsp;\|&nbsp;echo&nbsp;x.</span></div></li>
<li><div class="src-line"><span class="src-comm">&nbsp;*/</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/ini_set">ini_set</a><span class="src-sym">(</span><span class="src-str">'safe_mode'</span><span class="src-sym">,&nbsp;</span><span class="src-num">1</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line"><span class="src-inc">include_once&nbsp;</span><span class="src-str">'../VersionControl/Hg.php'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><span class="src-var">$hg&nbsp;</span>=&nbsp;<span class="src-key">new&nbsp;</span><span class="src-id"><a href="../Hg/VersionControl_Hg.html">VersionControl_Hg</a></span><span class="src-sym">(</span><span class="src-str">'H:\Development\_Webroot\Trunk\Tests\Fixtures\Test_Repository'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">echo&nbsp;<span class="src-str">&quot;ALL\r\n&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-str">'verbose'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">echo&nbsp;<span class="src-str">&quot;DATES\r\n&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Log.html#methodon">on</a><span class="src-sym">(</span><span class="src-str">'Dec&nbsp;27,&nbsp;2010'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Log.html#methodbefore">before</a><span class="src-sym">(</span><span class="src-str">'Dec&nbsp;27,&nbsp;2010'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Log.html#methodafter">after</a><span class="src-sym">(</span><span class="src-str">'Dec&nbsp;27,&nbsp;2010'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Log.html#methodbetween">between</a><span class="src-sym">(</span><span class="src-str">'Dec&nbsp;27,&nbsp;2010'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'2010-12-31'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">echo&nbsp;<span class="src-str">&quot;REVISIONS:&nbsp;2\r\n&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Log.html#methodrevision">revision</a><span class="src-sym">(</span><span class="src-str">'2'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Abstract.html#methodformat">format</a><span class="src-sym">(</span><span class="src-str">'raw'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-str">'verbose'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Log.html#methodrevision">revision</a><span class="src-sym">(</span><span class="src-str">'2'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-str">'verbose'</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">echo&nbsp;<span class="src-str">&quot;FILES:&nbsp;ONLY&nbsp;INDEX.PHP\r\n&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Log.html#methodfiles">files</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'index.php'</span><span class="src-sym">))</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">echo&nbsp;<span class="src-str">&quot;EXCLUDING&nbsp;PHP&nbsp;FILES\r\n&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Abstract.html#methodexcluding">excluding</a><span class="src-sym">(</span><span class="src-str">'**.php'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><span class="src-comm">/*&nbsp;Displays&nbsp;nothing;&nbsp;excluding&nbsp;takes&nbsp;precedence.&nbsp;Remove&nbsp;excluding()&nbsp;to&nbsp;get&nbsp;only&nbsp;index.php&nbsp;*/</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Log.html#methodfiles">files</a><span class="src-sym">(</span><span class="src-key">array</span><span class="src-sym">(</span><span class="src-str">'index.php'</span><span class="src-sym">))</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Abstract.html#methodexcluding">excluding</a><span class="src-sym">(</span><span class="src-str">'**.php'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">echo&nbsp;<span class="src-str">&quot;INCLUDING&nbsp;PHP&nbsp;FILES\r\n&quot;</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><span class="src-comm">//@TODO&nbsp;Add&nbsp;another&nbsp;PHP&nbsp;file&nbsp;to&nbsp;the&nbsp;repo&nbsp;to&nbsp;test&nbsp;for&nbsp;sure</span></div></li>
<li><div class="src-line"><a href="http://www.php.net/var_dump">var_dump</a><span class="src-sym">(</span><span class="src-var">$hg</span><span class="src-sym">-&gt;</span><a href="http://www.php.net/log">log</a><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><a href="../Hg/Command/VersionControl_Hg_Command_Abstract.html#methodincluding">including</a><span class="src-sym">(</span><span class="src-str">'**.php'</span><span class="src-sym">)</span><span class="src-sym">-&gt;</span><span class="src-id">run</span><span class="src-sym">(</span><span class="src-sym">))</span><span class="src-sym">;</span></div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Mon, 27 Jun 2011 14:22:54 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</body>
</html>