[non topological heads]

Uwe Brauer oub at mat.ucm.es
Fri Jun 2 12:38:57 UTC 2017


   > On Thu, 01 Jun 2017 06:56:47 -0400, Uwe Brauer <oub at mat.ucm.es> wrote:

   > I've got to ask a stupid question, since IDK what the corruption is or
   > where it is.


   > Can you clone from BB, and then from inside that local
   > clone, pull from the corrupted repo?

You mean the corrupted repo which I did not repair with convert? I did
not try this out.

Ok when I do that (in the BB clone) I obtain 

hg pull ../Orginal
pulling from ../Orginal
searching for changes
adding changesets
adding manifests
adding file changes
remote: abort: unexpected error: empty or missing revlog for Lista/Examen-Geo2/anova.csv
transaction abort!
rollback completed
abort: pull failed on remote

   > Even if you can't pull everything, maybe you can specify a revision
   > and pull in pieces at a time?


So I just pull the first new commit.

That is the last clean commit in BB is 7cdd8585c0ac

The first new one in the corrupt repo  is add711370282

So I run

hg pull -r  add711370282 ../Original

abort: data/Lista/Examen-Geo2/anova.csv.i at 3107306eb740: no match found!
warning: outgoing hook exited with status 255
adding changesets
adding manifests
adding file changes
added 1 changesets with 3 changes to 3 files
9 new obsolescence markers
(run 'hg update' to get a working copy)
abort: data/Lista/Lista-Ej/lista.org.i at f68105cb677d: no match found!
warning: changegroup.diffstat hook exited with status 255

Hg log -G
 changeset:   519:add711370282
|  branch:      year-2016-17
|  tag:         tip
|  user:        Uwe Brauer  <oub at mat.ucm.es>
|  date:        Tue May 16 17:43:22 2017 +0000
|  summary:     Small changes in Hoja6/8

But
hg verify
Lista/Lista-Ej/lista.org at 519: manifest refers to unknown revision f68105cb677d
 README.org at 519: manifest refers to unknown revision d721d07b2857
1168 files, 520 changesets, 1777 total revisions
2 integrity errors encountered!
(first damaged changeset appears to be 519)

Hg strip -r 519

abort: data/Lista/Lista-Ej/lista.org.i at f68105cb677d: no node!

Now this is *nice*. I'd say this is even a bug. That should not have
happened either the pulling should have been aborted or the strip should
have been worked.


Now the BB clone is also corrupt.


   > So, what's the child of this one?


   > Assuming that you didn't omit the branch name, it would seem that this
   > is another head on default. So it seems that somebody did a push -f at
   > some point.

Ok that is odd but could have happened




   > I don't understand. `hg help glossary` says a topological head is a
   > commit with no children. How can something be a head but not a
   > topological head?


 Now I am confused

Why is there a difference between

hg heads

And

hg heads -t


Thanks again. I presume I have to life with the 'repaired version' via
convert and forget the BB repo, or better say regenerate it on BB

Uwe 




More information about the Mercurial mailing list