[MERGE] update osutils.walkdirs docstring to mention abspath

Adeodato Simó dato at net.com.org.es
Sun Aug 6 13:34:52 BST 2006


When looking into using osutils.walkdirs, I noticed the documentation
did not mention that abspath was included in the yielded tuples, the
attached bundle fixes that.


Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
        Listening to: Radio Futura - Regreso a las minas del rey Salomón
-------------- next part --------------
# Bazaar revision bundle v0.8
# message:
#   Update osutils.walkdirs doctstring to reflect that abspath is included
#   in the yielded tuple.
# committer: Adeodato Simó <dato at net.com.org.es>
# date: Sun 2006-08-06 14:33:03.378000021 +0200

=== modified file bzrlib/osutils.py
--- bzrlib/osutils.py
+++ bzrlib/osutils.py
@@ -876,7 +876,7 @@
     The data yielded is of the form:
     ((directory-relpath, directory-path-from-top),
-    [(relpath, basename, kind, lstat), ...]),
+    [(relpath, basename, kind, lstat, abspath), ...]),
      - directory-relpath is the relative path of the directory being returned
        with respect to top. prefix is prepended to this.
      - directory-path-from-root is the path including top for this directory. 
@@ -887,6 +887,7 @@
        present within the tree - but it may be recorded as versioned. See
      - lstat is the stat data *if* the file was statted.
+     - abspath is the absolute path of the file.
      - planned, not implemented: 
        path_from_tree_root is the path from the root of the tree.

# revision id: dato at net.com.org.es-20060806123303-2775e3012570738b
# sha1: 050db6c86214ccdc789715a66070568923d7aeb1
# inventory sha1: 71c9cac9f05af5a4ebb148056f5c0408445ab8ce
# parent ids:
#   pqm at pqm.ubuntu.com-20060802020654-9d81db40bba14f69
# base id: pqm at pqm.ubuntu.com-20060802020654-9d81db40bba14f69
# properties:
#   branch-nick: walkdirs_docstring_fix

More information about the bazaar mailing list