Can't push. Any idea why?

Matt Mackall mpm at selenic.com
Mon Nov 29 16:24:01 CST 2010


On Mon, 2010-11-29 at 15:23 -0600, lumeng.dev at gmail.com wrote:
> Hi,
> 
> 
> On Mon, Nov 29, 2010 at 12:25, lumeng.dev at gmail.com
> <lumeng.dev at gmail.com> wrote:
>         Hi,
>         
>         
>         On Mon, Nov 29, 2010 at 08:11, Augie Fackler
>         <durin42 at gmail.com> wrote:
>                 
>                 On Nov 29, 2010, at 2:03 AM, Adrian Buehlmann wrote:
>                 
>                 > On 2010-11-29 07:38, lumeng.dev at gmail.com wrote:
>                 >> Can't push. Any idea why?
>                 >>
>                 >> $ hg push ~/hg/repos/repotest
>                 >> pushing to /home/usr1/lx/hg/repos/repotest
>                 >> searching for changes
>                 >> adding changesets
>                 >> adding manifests
>                 >> adding file changes
>                 >> transaction abort!
>                 >> rollback completed
>                 >> abort: empty or missing revlog for
>                 DemoDevel/Project/._Foo.c
>                 >> $
>                 >>
>                 >> I have tried to remove all files starting with ._
>                 and added ._* into
>                 >> .hgignore.
>                 >
>                 > In case you've executed a (non-Mercurial) command
>                 (shell or program)
>                 > that searches through the file system's directory
>                 tree, removing all
>                 > files starting with ._ and you did let recurse it
>                 inside the .hg
>                 > directory (which contains Mercurial's private
>                 metadata inside .hg/store
>                 > you shouldn't fiddle with yourself), then you
>                 probably have corrupted
>                 > your repository's stored history by deleting files
>                 beginning with "._"
>                 > inside .hg/store.
>                 
>                 
>                 He probably copied it from a non-HFS filesystem to an
>                 HFS filesystem using Finder on OS X. That'd cause
>                 exactly this class of corruption.
>                 
>                 
>         This is probably the issue. I am looking for solution to
>         handling this. I found BlueHarvest4
>         (http://www.zeroonetwenty.com/blueharvest4/)
> 
> 
> Using this didn't fix the problem.

Why would it? A tool that automatically deletes files starting with ._
will almost certainly make matters worse, not better. Deleting files
inside .hg/ is a good way to permanently damage your repo.

> So how do I safely copy a repository?

Some people use "hg clone". Others use cp/tar/zip.


-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial mailing list