brz revert fails

Bug #1844054 reported by Sam Bull on 2019-09-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Jelmer Vernooij

Bug Description

I did a brz pull, and it pulled the repo, but then hit an error (which I failed to save). It failed to update the actual files (but I can still branch from it successfully, so the repo is updated).

Now when I try to brz revert to get the working tree to update, I get this error:

> brz revert
brz: ERROR: StopIteration:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 1016, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 1202, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 759, in run_argv_aliases
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 784, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 137, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 4854, in run
    self._revert_tree_to_revision(tree, revision, file_list, no_backup)
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 4860, in _revert_tree_to_revision
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 1048, in revert
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 2861, in revert
    delta.report_changes(tt.iter_changes(), change_reporter)
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 988, in iter_changes
    self._from_file_data(from_trans_id, from_versioned, from_path)
  File "/usr/local/lib/python3.7/site-packages/breezy/", line 909, in _from_file_data

brz 3.0.1 on python 3.7.4 (Darwin-18.7.0-x86_64-i386-64bit)
arguments: ['/usr/local/bin/brz', 'revert']
plugins: bash_completion[3.0.1], changelog_merge[3.0.1],
    commitfromnews[unknown], cvs[3.0.1], darcs[unknown], email[unknown],
    fastimport[unknown], launchpad[3.0.1], mtn[3.0.1],
    netrc_credential_store[3.0.1], news_merge[3.0.1], po_merge[3.0.1],
    propose[unknown], repodebug[unknown], stats[3.0.1], upload[3.0.1],
encoding: 'utf-8', fsenc: 'utf-8', lang: 'en_GB.UTF-8'

Tags: git Edit Tag help

Related branches

Sam Bull (dreamsorcerer) on 2019-09-15
description: updated
Jelmer Vernooij (jelmer) on 2019-09-16
Changed in brz:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Jelmer Vernooij (jelmer)
tags: added: git
Jelmer Vernooij (jelmer) on 2019-10-13
Changed in brz:
status: Triaged → Fix Committed
milestone: none → 3.1.0
Jelmer Vernooij (jelmer) on 2019-10-13
Changed in brz:
status: Fix Committed → Fix Released
Jelmer Vernooij (jelmer) wrote :

This issue is fixed in 3.1, but not 3.0. We could possibly backport it to the 3.0 series so it makes it into 3.0.3.

Jelmer Vernooij (jelmer) on 2019-12-01
Changed in brz:
status: Fix Released → Fix Committed
Sam Bull (dreamsorcerer) wrote :

Have recently run into this same error on a brz merge and brz pull, assuming it's the same cause though.

Jelmer Vernooij (jelmer) on 2020-06-08
Changed in brz:
status: Fix Committed → Fix Released
no longer affects: brz/3.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers