darcs

Issue 1176 caches interfere with --remote-repo flag

Title caches interfere with --remote-repo flag
Priority bug Status needs-reproduction
Milestone Resolved in
Superseder Nosy List abuiles, darcs-devel, dmitry.kurochkin, kowey, thorkilnaur
Assigned To
Topics Hashed

Created on 2008-10-26.21:47:48 by kowey, last changed 2010-06-08.05:53:08 by abuiles.

Files
File name Uploaded Type Edit Remove
unnamed abuiles, 2010-06-08.05:53:07 text/html
Messages
msg6474 (view) Author: kowey Date: 2008-10-26.21:47:46
I had my local sprint branch set up with:
  pull remote-repo http://code.haskell.org/darcs/sprint
in its _darcs/prefs/defaults

The default repo is kowey@code.haskell.org:/srv/code/darcs/sprint

But when I pulled, I kept getting ssh prompts.  If I remove the
_darcs/prefs/sources file, it does the right thing (pulling via ssh).

I think it should be fairly easy for somebody to write up a test case for this,
using only local repos.  Setting this to need-volunteer so that somebody can
write the test
msg11320 (view) Author: abuiles Date: 2010-06-08.05:53:07
Hi Eric, maybe I'm missing something here but :

> I had my local sprint branch set up with:
>
>   pull remote-repo http://code.haskell.org/darcs/sprint
> in its _darcs/prefs/defaults
>
> The default repo is kowey@code.haskell.org:/srv/code/darcs/sprint
>
> But when I pulled, I kept getting ssh prompts.  If I remove the
> _darcs/prefs/sources file, it does the right thing (pulling via ssh).
>
> Wouldn't be the right thing  here  pulling via http from http://code.haskell.org/darcs/sprint
? <http://code.haskell.org/darcs/sprint>  not via ssh.
When you said ssh prompts, was it prompting from
kowey@code.haskell.org:/srv/code/darcs/sprint
?

Although --remote-repo  "rewrites" the defaultrepo, it always contains the
defaultrepo also in the sources list, that's why it was trying to connect to
"kowey@..." (I'm just guessing it was to that one), and darcs always tries
the repos from the cache rather than the default or the given one.

Now thinking about it, I don't see how could probably be useful having the
defaultrepo also replied in the cache if it is remote, obviously the local
ones would be really useful, but having remotes repos in sources, force us
to establish a connection ( which I could have done with the given repo or
defaultrepo ), not really contributing that much to performance, so it
sounds to me like we shouldn't save ( by default) remote repositories in the
cache.

Cheers,

Adolfo
Attachments
History
Date User Action Args
2008-10-26 21:47:48koweycreate
2009-08-10 23:49:33adminsetnosy: - dagit
2009-08-25 17:32:44adminsetnosy: + darcs-devel, - simon
2009-08-27 10:40:27koweysettopic: + Hashed
nosy: kowey, darcs-devel, thorkilnaur, dmitry.kurochkin
2009-08-27 14:34:20adminsetnosy: kowey, darcs-devel, thorkilnaur, dmitry.kurochkin
2010-06-08 05:53:08abuilessetfiles: + unnamed
nosy: + abuiles
messages: + msg11320