[svnbook] r3946 committed - * src/en/book/ch08-embedding-svn.xml...

svnbook at googlecode.com svnbook at googlecode.com
Tue Aug 2 15:10:56 CDT 2011


Revision: 3946
Author:   cmpilato at gmail.com
Date:     Tue Aug  2 13:06:37 2011
Log:      * src/en/book/ch08-embedding-svn.xml
   Use svn_client_create_context() instead of svn_client_ctx_t() now,
   remove explanation of that former weirdness.

http://code.google.com/p/svnbook/source/detail?r=3946

Modified:
  /trunk/src/en/book/ch08-embedding-svn.xml

=======================================
--- /trunk/src/en/book/ch08-embedding-svn.xml	Tue Aug  2 13:02:09 2011
+++ /trunk/src/en/book/ch08-embedding-svn.xml	Tue Aug  2 13:06:37 2011
@@ -1267,7 +1267,7 @@

  def do_status(wc_path, verbose):
      # Build a client context baton.
-    ctx = svn.client.svn_client_ctx_t()
+    ctx = svn.client.svn_client_create_context()

      def _status_callback(path, status):
          """A callback function for svn_client_status."""
@@ -1322,16 +1322,10 @@
  </programlisting>
        </example>

-      <para>As was the case in <xref
-        linkend="svn.developer.usingapi.otherlangs.ex-1" />, this
-        program is pool-free and uses, for the most part, normal
-        Python datatypes.  The call to
-        <function>svn_client_ctx_t()</function> is deceiving because
-        the public Subversion API has no such function—this just
-        happens to be a case where SWIG's automatic language
-        generation bleeds through a little bit (the function is a sort
-        of factory function for Python's version of the corresponding
-        complex C structure).  Also note that the path passed to this
+      <para>As was the case in
+        <xref linkend="svn.developer.usingapi.otherlangs.ex-1" />,
+        this program is pool-free and uses, for the most part, normal
+        Python datatypes.  Also note that the path passed to this
          program (like the last one) gets run through
          <function>svn_path_canonicalize()</function>, because to
          <emphasis>not</emphasis> do so runs the risk of triggering the




More information about the svnbook-dev mailing list