/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/uncommit.py

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 01:35:14 UTC
  • mfrom: (7490.7.6 work)
  • mto: This revision was merged to the branch mainline in revision 7499.
  • Revision ID: jelmer@jelmer.uk-20200322013514-7vw1ntwho04rcuj3
merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Remove the last revision from the history of the current branch."""
18
18
 
19
 
from __future__ import absolute_import
20
 
 
21
19
# TODO: make the guts of this methods on tree, branch.
22
20
 
23
21
from . import (
41
39
    ancestors = graph.find_unique_ancestors(old_tip, parents)
42
40
    removed_tags = []
43
41
    for revid, tags in reverse_tags.items():
44
 
        if not revid in ancestors:
 
42
        if revid not in ancestors:
45
43
            continue
46
44
        for tag in tags:
47
45
            branch.tags.delete_tag(tag)