List Info

Thread: Is it possible to restart an interrupted "darcs get" via HTTP?




Is it possible to restart an interrupted "darcs get" via HTTP?
user name
2006-12-01 13:11:41
I see this is on the (obsolete) wish list, and "restart
darcs get"
gets no hits in the tracker, so I presume it's not possible
yet, but I
thought I'd ask.

Or is there any way to bootstrap a partial repo from the
3700 patches
I've already downloaded? 

I suppose that to get a restartable transfer, the best way
is to init
an empty repo and darcs pull?  This is a one-time thing to
bootstrap
a public mirror of a moderately large repository (120MB, at
a guess)
hosted on a machine that's on a metered connection, so
efficiency
really only matters in terms of reducing burden on the
primary repo's
host.

Thanks for any hints!

Steve


_______________________________________________
darcs-users mailing list
darcs-usersdarcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users
Is it possible to restart an interrupted "darcs get" via HTTP?
user name
2006-12-01 15:02:37
On Fri, Dec 01, 2006 at 10:11:41PM +0900, Stephen J.
Turnbull wrote:
> I see this is on the (obsolete) wish list, and
"restart darcs get"
> gets no hits in the tracker, so I presume it's not
possible yet, but I
> thought I'd ask.
> 
> Or is there any way to bootstrap a partial repo from
the 3700 patches
> I've already downloaded? 

A complete Get can be substituted with a 'cp -a', so if you
can
use ftp in resume mode, or rsync or http with resume (is
there
such a thing?), or something, just to sync over the missing
files, you're home.

To "repair" the repo by hand could be hard. I've
just been
reading the Get source (to find out what's happening to some
darcs-ssh dirs), and I think the situation would be
something
like this: you have the inventory and some of the patches.
This
is a problem, because the inventory is darcs' idea of what
patches it has, and whenever it can't find any of them in
_darcs/patches/ it aborts. So if you can hand-edit the
inventory
and remove all missing patches from it, darcs might be able
to
Repair the repo. But that only works if the patches were
fetched
in order (I don't know if they are), so only the last
patches
are missing, because if there is a "gap" of
missing patches in
the inventory, all patches following the gap must be
commuted
with those missing ones, which of course can't be done since
they are missing.


-- 
Tommy Pettersson <ptplysator.liu.se>

_______________________________________________
darcs-users mailing list
darcs-usersdarcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users
Is it possible to restart an interrupted "darcs get" via HTTP?
user name
2006-12-01 15:11:50
Tommy Pettersson wrote:
> On Fri, Dec 01, 2006 at 10:11:41PM +0900, Stephen J.
Turnbull wrote:
>> Or is there any way to bootstrap a partial repo
from the 3700 patches
>> I've already downloaded? 
> 
> A complete Get can be substituted with a 'cp -a', so if
you can
> use ftp in resume mode, or rsync or http with resume
(is there
> such a thing?), or something, just to sync over the
missing
> files, you're home.

To save on data transfer, you don't need to get current or
working - 
once you have the patch files and inventories you can
rebuild with 
repair and revert.  If the web server has autogenerated
index pages for 
files, you could automate getting those with something like
wget, probably.

Edwin

_______________________________________________
darcs-users mailing list
darcs-usersdarcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users
Is it possible to restart an interrupted "darcs get" via HTTP?
user name
2006-12-01 17:02:36
Edwin Thomson writes:

 > To save on data transfer, you don't need to get
current or working - 
 > once you have the patch files and inventories you can
rebuild with 
 > repair and revert.  If the web server has
autogenerated index pages for 
 > files, you could automate getting those with something
like wget, probably.

Ah, thanks!  Maybe we can do better by having darcs use wget
in
noclobber mode.  (But I'd still need to be able to fool
darcs into
using the existing partial repo.)

In the end, I guess the thing to do is what Tommy suggested,
coordinate on using rsync or some other restartable method
while he
promises not to commit in the middle of a rysnc. 

Thanks again,

Steve



_______________________________________________
darcs-users mailing list
darcs-usersdarcs.net
http://www.abridgegame.org/mailman/listinfo/darcs-users
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )