Rev 1829: Avoid fetching full branch contents if absolutely necessary. in file:///data/jelmer/bzr-svn/trunk/
Jelmer Vernooij
jelmer at samba.org
Sat Sep 6 15:20:55 BST 2008
At file:///data/jelmer/bzr-svn/trunk/
------------------------------------------------------------
revno: 1829
revision-id: jelmer at samba.org-20080906142053-sej0t01hch1am27p
parent: jelmer at samba.org-20080906133447-1999zvhfop4o0724
committer: Jelmer Vernooij <jelmer at samba.org>
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):
More information about the bazaar-commits
mailing list