recover files from revlog
Erik Haugen
haugen at gmail.com
Sat Sep 3 05:26:31 UTC 2022
$ ls -l .hg/store
total 32
-rwxr-xr-x 1 ech ech 786 Aug 28 02:13 00changelog.i
-rwxr-xr-x 1 ech ech 4122 Aug 28 02:13 00manifest.i
drwxr-xr-x 1 ech ech 10 Aug 28 02:13 data
-rwxr-xr-x 1 ech ech 7892 Aug 28 02:19 fncache
-rwxr-xr-x 1 ech ech 10965 Aug 28 02:19 undo
$ hg debugformat
format-variant repo
fncache: no
dotencode: no
generaldelta: no
sparserevlog: no
sidedata: no
persistent-nodemap: no
copies-sdc: no
plain-cl-delta: yes
compression: zlib
compression-level: default
thanks!!
-erik
On Fri, Sep 2, 2022 at 3:24 PM Pierre-Yves David <
pierre-yves.david at ens-lyon.org> wrote:
> There is no `.hg/requires` file. So the respository is seems as "v0" the
> ancient lecgacy pre-1.0 format. Since the 00changelog.i file is also
> missing, the repository is seems as empty.
>
> So, there is some missing file in this repository, this is concerning
> (and we should find out how it happened)
>
> Can we get a `ls -l` of ` .hg/store`, this might be recoverable.
>
> Can you also provide us with the output of `hg debugformat` for good
> measure?
>
>
> On 9/2/22 20:25, Erik Haugen wrote:
> > manifest.i is 4.1K:
> >
> > $ ls -hl .hg/store/00manifest.i
> > -rwxr-xr-x 1 ech ech 4.1K Aug 28 02:13 .hg/store/00manifest.i
> >
> > ls .hg/
> > last-message.txt shamap store undo.dirstate wcache
> >
> > there's no strip-backup
> >
> > Thanks!!
> > -erik
> >
> > On Thu, Sep 1, 2022 at 12:36 PM Augie Fackler <raf at durin42.com> wrote:
> >
> > That’s weird. Does `ls -hl .hg/store/00manifest.i` print anything,
> > or is that file zero-length?
> >
> > Is there anything in .hg/strip-backup?
> >
> > > On Aug 29, 2022, at 9:56 AM, Erik Haugen <haugen at gmail.com> wrote:
> > >
> > > I have a weird situation. This repository has lots of data:
> > >
> > > $ du -h .hg | tail -1
> > > 9.0G .hg
> > >
> > > but mercurial seems to think there's nothing in it:
> > > $ hg up tip
> > > 0 files updated, 0 files merged, 0 files removed, 0 files
> unresolved
> > > $ ls -a
> > > . .. .hg
> > > $ hg log
> > > $
> > >
> > > I have a bunch of .d and .i files under .hg/store. Is there any
> > way to recover originals from the .d?
> > >
> > > If it matters, I'll note:
> > > * This is pretty old, that is it was created with a mercurial
> > version from like 10 years ago, give or take.
> > > * There might just be one version of each file
> > >
> > > Thanks for any help!
> > > -Erik
> > > _______________________________________________
> > > Mercurial mailing list
> > > Mercurial at lists.mercurial-scm.org
> > > https://lists.mercurial-scm.org/mailman/listinfo/mercurial
> >
> >
> > _______________________________________________
> > Mercurial mailing list
> > Mercurial at lists.mercurial-scm.org
> > https://lists.mercurial-scm.org/mailman/listinfo/mercurial
>
> --
> Pierre-Yves David
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20220903/b6fef993/attachment.html>
More information about the Mercurial
mailing list