NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Pre-seeded Mercurial-Clone available? (was: Checking out src with Mercurial)



At Sat, 20 Jun 2020 12:25:26 +0200, Matthias Petermann <mp%petermann-it.de@localhost> wrote:
Subject: Pre-seeded Mercurial-Clone available? (was: Checking out src with Mercurial)
>
> while I was able to successfully clone the pkgsrc and xsrc via anonhg,
> I still bite my teeth at src. As already described in one of my
> previous e-mails, I tried to limit the number of changesets called up
> at the same time with --rev, so that I don't lose everything in the
> event of a fault. Now the message "transaction canceled"
> came. Afterwards "Roll back failed, please run hg
> recover". Unfortunately, "hg recover" also reports an abort because an
> automatic repair is obviously not possible. So now I'm starting again
> ...

Did you actually try doing what I said worked for me in the other thread?

First fetch the initial "bundle", then unbundle it into your local
filesystem, then do a checkout, then set up the upstream pointer, and
finally do a pull to update from there.

The bundle _is_ the initial seed for a repository, and disconnecting the
fetching of the bundle from the unbundling prevents the upstream server
from disconnecting at _any_ inopportune time.

(Note the latest bundle name may have changed since I did this.)

17:46 [668] $ ftp https://cdn.NetBSD.org/_bundles/src/77d2a2ece3a06d837da45acd0fda80086ab4113c.zstd.hg
Requesting https://cdn.NetBSD.org/_bundles/src/77d2a2ece3a06d837da45acd0fda80086ab4113c.zstd.hg
100% |***********************************|  1285 MiB    6.86 MiB/s    00:00 ETA
1347521045 bytes retrieved in 03:07 (6.84 MiB/s)
17:55 [669] $ hg init h-NetBSD-src
17:55 [670] $ cd h-NetBSD-src
17:55 [671] $ hg unbundle /build/work-tmp/77d2a2ece3a06d837da45acd0fda80086ab4113c.zstd.hg
adding changesets
adding manifests
adding file changes
added 931876 changesets with 2425841 changes to 439702 files (+417 heads)
new changesets 8cec458d70ff:77d2a2ece3a0
(run 'hg heads' to see heads)
20:48 [672] $ time hg checkout trunk
171685 files updated, 0 files merged, 0 files removed, 0 files unresolved
 7204.00s real   501.37s user  1645.00s system
22:48 [673] $ cat > .hg/hgrc << __EOF
[paths]
default = https://anonhg.netbsd.org/src
__EOF
22:48 [674] $ hg pull -u
pulling from https://anonhg.netbsd.org/src
searching for changes
adding changesets
adding manifests
adding file changes
added 259 changesets with 859 changes to 650 files
updating bookmark @
new changesets 5993a87b9762:c03006e4c92b
591 files updated, 0 files merged, 59 files removed, 0 files unresolved
updated to "70af0474285c: Convert to new proplib api"
1 other heads for branch "trunk"



--
					Greg A. Woods <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgpFo6eykF7fj.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index