Rev 1420: Add docstring. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk

Jelmer Vernooij jelmer at samba.org
Tue Jul 1 22:39:24 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/trunk

------------------------------------------------------------
revno: 1420
revision-id: jelmer at samba.org-20080701213923-9jl2quanskc0oygn
parent: jelmer at samba.org-20080701213719-85wrapyz8nesepj8
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Tue 2008-07-01 23:39:23 +0200
message:
  Add docstring.
modified:
  fileids.py                     fileids.py-20060714013623-u5iiyqqnko11grcf-1
=== modified file 'fileids.py'
--- a/fileids.py	2008-06-29 03:57:27 +0000
+++ b/fileids.py	2008-07-01 21:39:23 +0000
@@ -29,8 +29,17 @@
 
 def get_local_changes(paths, branch, mapping, generate_revid, 
                       get_children=None):
+    """Obtain all of the changes relative to a particular path
+    (usually a branch path).
+
+    :param paths: Changes
+    :param branch: Path under which to select changes
+    :parma mapping: Mapping to use to determine what are valid branch paths
+    :param generate_revid: Function for generating revision id from svn revnum
+    :param get_children: Function for obtaining the children of a path
+    """
     new_paths = {}
-    for p in sorted(paths.keys()):
+    for p in sorted(paths.keys(), reverse=False):
         if not changes.path_is_child(branch, p):
             continue
         data = paths[p]
@@ -65,7 +74,7 @@
     
     Does not track renames. """
     map = {}
-    for p in sorted(changes.keys()):
+    for p in sorted(changes.keys(), reverse=False):
         data = changes[p]
 
         inv_p = p.decode("utf-8")




More information about the bazaar-commits mailing list