Revision not present in CHKInventoryRepository(..)

John Meinel john at arbash-meinel.com
Mon Oct 17 05:25:59 UTC 2011


John
=:->
On Oct 17, 2011 6:15 AM, "Andrew Foster" <andy at sol1.com.au> wrote:

> Hi Martin,
>
> Thanks for the reply. I've upgraded to 2.4.1 and although it changed the
> wording of the error it seems no more successful:
>
> $ bzr log
> [..]
> bzr: ERROR: Revision {Arch-1:ryan at example.com--2005%reponame--ryan--1--patch-5}
> not present in
> "Graph(StackedParentsProvider(bzrlib.repository._LazyListJoin(([CachingParentsProvider(CallableToParentsProviderAdapter(<bound
> method CHKInventoryRepository._get_parent_map_no_fallbacks of
> CHKInventoryRepository('file:///Users/andy/projects/reponame/.bzr/repository/')>))],
> []))))".
>
> From .bzr.log:
>
> Mon 2011-10-17 15:05:59 +1100
> 0.052  bazaar version: 2.4.1
> 0.052  bzr arguments: [u'log']
> 0.079  looking for plugins in /Users/andy/.bazaar/plugins
> 0.079  looking for plugins in
> /Library/Python/2.6/site-packages/bzrlib/plugins
> 0.133  encoding stdout as sys.stdout encoding 'UTF-8'
> 0.182  encoding stdout as sys.stdout encoding 'UTF-8'
> 0.581  Transferred: 0kB (0.0kB/s r:0kB w:0kB)
> 0.586  Traceback (most recent call last):
>  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 946, in
> exception_to_return_code
>    return the_callable(*args, **kwargs)
>  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1150, in
> run_bzr
>    ret = run(*run_argv)
>  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 699, in
> run_argv_aliases
>    return self.run(**all_cmd_args)
>  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 721, in
> run
>    return self._operation.run_simple(*args, **kwargs)
>  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in
> run_simple
>    self.cleanups, self.func, *args, **kwargs)
>  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in
> _do_with_cleanups
>    result = func(*args, **kwargs)
>  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1165, in
> ignore_pipe
>    result = func(*args, **kwargs)
>  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 2545, in
> run
>    Logger(b, rqst).show(lf)
>  File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 369, in show
>    self._show_body(lf)
>  File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 395, in
> _show_body
>    for lr in generator.iter_log_revisions():
>  File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 434, in
> iter_log_revisions
>    for revs in revision_iterator:
>  File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 984, in
> _make_revision_objects
>    for revs in log_rev_iterator:
>  File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 1009, in
> _make_batch_filter
>    step = [detail for _, detail in zip(range(num), batch)]
>  File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 839, in
> _convert
>    for view in view_revisions:
>  File "/Library/Python/2.6/site-packages/bzrlib/log.py", line 720, in
> _linear_view_revisions
>    (_mod_revision.NULL_REVISION,)):
>  File "/Library/Python/2.6/site-packages/bzrlib/graph.py", line 1002, in
> iter_lefthand_ancestry
>    parents = get_parents(next_key)
>  File "/Library/Python/2.6/site-packages/bzrlib/graph.py", line 998, in
> get_parents
>    raise errors.RevisionNotPresent(next_key, self)
> RevisionNotPresent: Revision {Arch-1:ryan at example.com--2005%reponame--ryan--1--patch-5}
> not present in
> "Graph(KnitsParentsProvider(KnitVersionedFiles(<bzrlib.knit._KndxIndex
> object at 0x10174d090>, <bzrlib.knit._KnitKeyAccess object at
> 0x1017cb490>)))".
>
> 0.587  return code 3
>
> It behaves the same on my up-to-date working tree (format 2a) using 2.4.1,
> or an old copy in dirstate format.
>
> I don't mind losing some history though, is there a way to restart the
> history as of some revision (like 200) as if it was the first commit, and
> discard the rest? It only seems to be having trouble with some of the oldest
> patches.
>
> - Andy
>
>
> On 17/10/2011, at 2:17 PM, Martin Pool wrote:
>
> > Hi Andy,
> >
> > This looks like bug 397556, which was fixed in bzr 2.4.  If that
> > doesn't fix it please let us know.
> >
> >  duplicate 397556
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20111017/4c941223/attachment-0001.html>


More information about the bazaar mailing list