Rev 2263: Should clear tag file when upgrading format 5 to 6 to prevent warning in http://sourcefrog.net/bzr/tags
Martin Pool
mbp at sourcefrog.net
Mon Feb 26 05:33:32 GMT 2007
At http://sourcefrog.net/bzr/tags
------------------------------------------------------------
revno: 2263
revision-id: mbp at sourcefrog.net-20070226053332-a0hjhbzhmjxmreq3
parent: mbp at sourcefrog.net-20070226052905-7mt8m6871e9dym8e
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: tags
timestamp: Mon 2007-02-26 16:33:32 +1100
message:
Should clear tag file when upgrading format 5 to 6 to prevent warning
modified:
bzrlib/branch.py branch.py-20050309040759-e4baf4e0d046576e
=== modified file 'bzrlib/branch.py'
--- a/bzrlib/branch.py 2007-02-25 11:49:16 +0000
+++ b/bzrlib/branch.py 2007-02-26 05:33:32 +0000
@@ -2134,6 +2134,9 @@
new_branch.set_bound_location(branch.get_bound_location())
new_branch.set_push_location(branch.get_push_location())
+ # New branch has no tags by default
+ new_branch.tags._set_tag_dict({})
+
# Copying done; now update target format
new_branch.control_files.put_utf8('format',
format.get_format_string())
More information about the bazaar-commits
mailing list