darcs

Issue 2028 Darcs 2.5 regression, "put" fails with "illegal operation" at apply-time

Title Darcs 2.5 regression, "put" fails with "illegal operation" at apply-time
Priority bug Status duplicate
Milestone Resolved in
Superseder darcs push: apply fails: hIsTerminalDevice (stdin closed)
View: 1980
Nosy List lele
Assigned To
Topics

Created on 2010-12-25.10:22:54 by lele, last changed 2011-01-05.17:09:04 by kowey.

Messages
msg13422 (view) Author: lele Date: 2010-12-25.10:22:53
Hi all,

I notice the following:

    $ darcs --version
    2.5 (release)

    $ darcs show repo
              Type: darcs
            Format: hashed, darcs-2
              Root: /home/lele/wip/aem/gam
          Pristine: HashedPristine
             Cache: thisrepo:/home/lele/wip/aem/gam, cache:/home/lele/.darcs/cache
    Default Remote: http://darcs.arstecnica.it/our/gam
       Num Patches: 1895

    $ darcs put /tmp/prova-gam
    Note: if you want to change the default remote repository to
    /tmp/prova-gam,
    quit now and issue the same command with the --set-default flag.
    darcs: <stdin>: hIsTerminalDevice: illegal operation (handle is closed)
    Apply failed!

    $ cd /tmp

    $ tree -d prova-gam
    prova-gam
    `-- _darcs
        |-- inventories
        |-- patches
        |-- prefs
        `-- pristine.hashed

    5 directories

    $ ls prova-gam/_darcs/patches/ | wc -l
    1896

So, it seems it effectively copied all the patches. Just to be sure, I
check that "darcs get" works:
    
    $ darcs get $OLDPWD test-gam
    Note: if you want to change the default remote repository to
    /home/lele/wip/aem/gam,
    quit now and issue the same command with the --set-default flag.
    Copying patches, to get lazy repository hit ctrl-C...
    Finished getting.

Ok.

Now with darcs 2.4:

    $ cd -

    $ darcs-2.4 --version
    2.4 (release)

    $ darcs-2.4 put /tmp/prova-gam-2.4
    Merging them 1616 done, 279 queued
    Writing pristine 2 done, 14 queued. 0000000071-bb47d5373a4e43286e86fc3cb21d3e25e
    Writing pristine 45 done, 160 queued. 0000000644-ffa42a5f07250ba3ed646b00fae2d10
    Writing pristine 121 done, 84 queued. 0000000676-4e2575f39f268b0a943530c53e9196b
    Writing pristine 198 done, 47 queued. 0000000943-42699f2bba72fbaf2040a06dff0c09b
    Writing pristine 282 done, 25 queued. 0000001100-97889e1972deb03c24d3f4f84a67192
    Writing pristine 356 done, 23 queued. 0000003687-5bdd3ff33889a1b25cceefba911ec23
    Writing pristine 491 done, 18 queued. 0000167544-a735e17d35a383b574bf719cba57a20
    Writing pristine 564 done, 24 queued. 0000006066-9ea36783f5fb1009abdbcaedce1680a
    Writing pristine 649 done, 8 queued. 0000002740-fd99e3deca690a04896b6c2fbfa1ec31
    Writing pristine 713 done, 14 queued. 0000000062-4af995a78ad135acba335f6402b69b8
    Finished applying...
    Put successful.

Yup, it works!

Hope this helps,
ciao&thanks, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it  |                 -- Fortunato Depero, 1929.
msg13423 (view) Author: lele Date: 2010-12-27.00:59:11
Ouch, even "push" fails in the same way:

    $ darcs init --repodir /tmp/push-test

    $ darcs push -a /tmp/push-test
    Note: if you want to change the default remote repository to
    /tmp/push-test,
    quit now and issue the same command with the --set-default flag.
    darcs: <stdin>: hIsTerminalDevice: illegal operation (handle is closed)
    Apply failed!                                               

Alarmed, I tried with a few other repositories of mine, but none
exhibited the problem. Phew!

This tampers the ability to upload *this* repository from the outside
and that's marginal enough... but what can be going wrong with it?

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it  |                 -- Fortunato Depero, 1929.
msg13424 (view) Author: lele Date: 2010-12-27.16:30:03
This is probably a duplicate of issue1980.
msg13449 (view) Author: kowey Date: 2011-01-05.17:09:04
I'm going to *assume* it's a duplicate for now purely on the basis of 
similar error messages.
History
Date User Action Args
2010-12-25 10:22:54lelecreate
2010-12-27 00:59:12lelesetmessages: + msg13423
2010-12-27 16:30:04lelesetmessages: + msg13424
2011-01-05 17:09:04koweysetpriority: bug
status: unknown -> duplicate
superseder: + darcs push: apply fails: hIsTerminalDevice (stdin closed)
messages: + msg13449