Rev 515: Another optimization. in file:///data/jelmer/bzr-svn/0.4/
Jelmer Vernooij
jelmer at samba.org
Thu Jul 12 09:28:37 BST 2007
At file:///data/jelmer/bzr-svn/0.4/
------------------------------------------------------------
revno: 515
revision-id: jelmer at samba.org-20070705103229-tiahwcgwm7lokboq
parent: jelmer at samba.org-20070705093605-uxas60wc7x44nco5
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: main
timestamp: Thu 2007-07-05 12:32:29 +0200
message:
Another optimization.
modified:
upgrade.py upgrade.py-20070106192108-0rakplee2lzah4gs-1
=== modified file 'upgrade.py'
--- a/upgrade.py 2007-07-05 09:36:05 +0000
+++ b/upgrade.py 2007-07-05 10:32:29 +0000
@@ -159,10 +159,11 @@
check_revision_changed(oldrev, newrev)
finally:
pb.finished()
-
+
# Make sure all the required current version revisions are present
for revid in rename_map.values():
- repository.fetch(svn_repository, revid)
+ if not repository.has_revision(revid):
+ repository.fetch(svn_repository, revid)
plan = generate_transpose_plan(repository, graph, rename_map,
lambda rev: create_upgraded_revid(rev.revision_id))
More information about the bazaar-commits
mailing list