abort: repository default not found!
Peter Teoh
htmldeveloper at gmail.com
Fri Apr 25 07:40:00 CDT 2008
On Fri, Apr 25, 2008 at 4:06 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:
> On 25.04.2008 09:38, Peter Teoh wrote:
> > A resend, please help......
> >
> > On Fri, Apr 25, 2008 at 3:30 PM, Peter Teoh <htmldeveloper at gmail.com> wrote:
> >> After I copy my entire directory tree to another directory, and then
> >> attempted a "hg pull", I got the following output:
> >>
> >> abort: repository default not found!
>
> Inside the .hg dir is a file hgrc which contains some path aliases.
> Path "default" seems to be defunct in your case.
>
> The default path in hgrc is set as a side effect of hg clone.
>
> The default path is used if you execute "hg pull" without saying
> from where you want to pull. See "hg help pull".
>
>
> >>
> >> Question is: it is definitely ok that I can move my directory
> >> around, right?
>
> Yes. It is ok to copy the repository directory with normal
> file system commands (for example using "cp -R" on FreeBSD).
>
> But you should make sure that no hg process is writing to your
> repository during the copying process. If you can't guarantee that,
> then you should do a "hg clone" to a backup repo and copy that.
>
> To verify that a repository is consistent and fine, use "hg verify".
>
>
Thank you very much Adrian. I managed to see another older copy of
the repository, copied the hgrc, and did a "hg pull", and "hg update"
all was fine.
Good to know this hg verify, as I can then verify that everything is
correct. I also did a "hg tags" and both are showing identical
listing, which was not before copying the hgrc. I have never touch
this hgrc, and yet it disappeared.
Thanks!!
--
Regards,
Peter Teoh
More information about the Mercurial
mailing list