Part of bzrlib.tag View In Hierarchy
Method | set_tag | Add a tag definition to the branch. |
Method | lookup_tag | Return the referent string of a tag |
Method | get_tag_dict | Return a dictionary mapping tags to revision ids. |
Method | get_reverse_tag_dict | Returns a dict with revisions as keys |
Method | delete_tag | Delete a tag definition. |
Method | merge_to | Copy tags between repositories if necessary and possible. |
Method | rename_revisions | Rename revisions in this tags dictionary. |
Method | _set_tag_dict | Replace all tag definitions |
Method | _serialize_tag_dict | Undocumented |
Method | _deserialize_tag_dict | Convert the tag file into a dictionary of tags |
Method | _merge_to_operation | Undocumented |
Method | _merge_to | Undocumented |
Method | _reconcile_tags | Do a two-way merge of two tag dictionaries. |
Inherited from _Tags:
Method | __init__ | Undocumented |
Method | has_tag | Undocumented |
Behaviour if the tag is already present is not defined (yet).
WARNING: Calling this on an unlocked branch will lock it, and will replace the tags without warning on conflicts.
Parameters | new_dict | Dictionary from tag name to target. |
This method has common command-line behaviour about handling error cases.
All new definitions are copied across, except that tags that already exist keep their existing definitions.
Parameters | to_tags | Branch to receive these tags |
overwrite | Overwrite conflicting tags in the target branch | |
ignore_master | Do not modify the tags in the target's master branch (if any). Default is false (so the master will be updated). New in bzr 2.3. | |
Returns | Tuple with tag_updates and tag_conflicts. tag_updates is a dictionary with new tags, None is used for removed tags tag_conflicts is a set of tags that conflicted, each of which is (tagname, source_target, dest_target), or None if no copying was done. |
Parameters | rename_map | Dictionary mapping old revids to new revids |
Do a two-way merge of two tag dictionaries.
Returns | (result_dict, updates, [(conflicting_tag, source_target, dest_target)]) |