At file:///data/jelmer/bzr-svn/trunk/

------------------------------------------------------------
revno: 1829
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Jelmer Vernooij <[EMAIL PROTECTED]>
branch nick: trunk
timestamp: Sat 2008-09-06 16:20:53 +0200
message:
  Avoid fetching full branch contents if absolutely necessary.
modified:
  fileids.py                     fileids.py-20060714013623-u5iiyqqnko11grcf-1
=== modified file 'fileids.py'
--- a/fileids.py        2008-09-02 23:46:26 +0000
+++ b/fileids.py        2008-09-06 14:20:53 +0000
@@ -38,6 +38,12 @@
     :param generate_revid: Function for generating revision id from svn revnum
     :param get_children: Function for obtaining the children of a path
     """
+    if (branch in paths and 
+        paths[branch][0] == 'A' and 
+        paths[branch][1] is None and get_children is None):
+        # Avoid finding all file ids if we're returning unusual 
+        # file ids only (get_children is None)
+        return {}
     new_paths = {}
     for p in sorted(paths.keys(), reverse=False):
         if not changes.path_is_child(branch, p):


-- 
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits

Reply via email to