<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everyone.<br>
Yesterday I had a problem with my bzr and although I tried to fix it
I'm still getting some errors messages that I would like to share with
you and seek for advice.<br>
This is what happened:<br>
&nbsp;I created a .py, committed it to my local branch and pushed it to our
server (centos 4.4 64 bits): all fine.<br>
I did some other stuff (not development and/or bzr related) and then
got back to add a little thing in the <br>
.py file. When I tried to commit it in my local branch, I got this
error:<br>
<br>
<small><i>bzr: ERROR: Knit inventory corrupt: sha-1 does not match
<a class="moz-txt-link-abbreviated" href="mailto:mmara@xxxx.com.ar-20070320022932-d7d47c21ef0c1ecc">mmara@xxxx.com.ar-20070320022932-d7d47c21ef0c1ecc</a></i></small><br>
<br>
I checked several commands and it was all the same. I got in the server
and found out that the same error<br>
was there too (my push replicate it there, I guess). I talk about this
with lifeless and spiv in the #irc who kindly help me with the problem
and finally suggested me that the easier way was to get the last .bzr
copy from my coworkers and fix with it my branch and the server one.<br>
This morning I did that: replaced the .bzr, got the different files
with status and syncronized the ones that had changed in their local
branches against mine and the server. Finally I got the server up2date
and working,<br>
my coworked pulled and it was ok for them, I pulled and it was ok for
me. However if I do a check I'm still getting an error as follows:<br>
<br>
<small><i>mariano@mishima:~/sourcecode/SmD/Ash/install$ bzr check<br>
bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: text
{smdrep.pkb-20061129022302-jh237lys2nc9mfy1-23} version
{<a class="moz-txt-link-abbreviated" href="mailto:mmara@xxxx.com.ar-20070320130212-33e5336ff4779f17">mmara@xxxx.com.ar-20070320130212-33e5336ff4779f17</a>} wrong sha1<br>
<br>
Traceback (most recent call last):<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 623,
in run_bzr_catch_errors<br>
&nbsp;&nbsp;&nbsp; return run_bzr(argv)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 585,
in run_bzr<br>
&nbsp;&nbsp;&nbsp; ret = run(*run_argv)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 291,
in run_argv_aliases<br>
&nbsp;&nbsp;&nbsp; return self.run(**all_cmd_args)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line
1842, in run<br>
&nbsp;&nbsp;&nbsp; check(branch, verbose)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/check.py", line 202, in
check<br>
&nbsp;&nbsp;&nbsp; repo_result = branch.repository.check([branch.last_revision()])<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line
38, in read_locked<br>
&nbsp;&nbsp;&nbsp; return unbound(self, *args, **kwargs)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line
713, in check<br>
&nbsp;&nbsp;&nbsp; return self._check(revision_ids)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line
717, in _check<br>
&nbsp;&nbsp;&nbsp; result.check()<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/check.py", line 73, in
check<br>
&nbsp;&nbsp;&nbsp; self.check_one_rev(rev_id)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/check.py", line 149, in
check_one_rev<br>
&nbsp;&nbsp;&nbsp; self._check_revision_tree(rev_id)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/check.py", line 182, in
_check_revision_tree<br>
&nbsp;&nbsp;&nbsp; ie.check(self, rev_id, inv, tree)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/inventory.py", line
354, in check<br>
&nbsp;&nbsp;&nbsp; self._check(checker, rev_id, tree)<br>
&nbsp; File "/usr/lib/python2.4/site-packages/bzrlib/inventory.py", line
618, in _check<br>
&nbsp;&nbsp;&nbsp; raise BzrCheckError('text {%s} version {%s} wrong sha1'<br>
BzrCheckError: Internal check failed: text
{smdrep.pkb-20061129022302-jh237lys2nc9mfy1-23} version
{<a class="moz-txt-link-abbreviated" href="mailto:mmara@xxxx.com.ar-20070320130212-33e5336ff4779f17">mmara@xxxx.com.ar-20070320130212-33e5336ff4779f17</a>} wrong sha1<br>
<br>
bzr 0.12.0 on python 2.4.4.candidate.1 (linux2)<br>
arguments: ['/usr/bin/bzr', 'check']<br>
<br>
** please send this report to <a class="moz-txt-link-abbreviated" href="mailto:bazaar-ng@lists.ubuntu.com">bazaar-ng@lists.ubuntu.com</a><br>
</i></small><br>
I'm afraid of committing or doing something and end with a corrupted
brach again. <br>
I would love to hear some suggestions about how can I proceed to fix
this and possibly find it's origin so it won't happen again (lifeless
mentioned several reasons why this might happen: disk errors at my end,
copying one but not the other file, using rsync or some other tool that
alters the files to the same effect. However, besides the first one
which is beyond my control, I would like to find a way to trace this
and fix it).<br>
<br>
I'll appreciate your answers, thanks for taking the time to read all
the email.<br>
<br>
<br>
<br>
<br>
</body>
</html>