darcs

Issue 1381 push foo@missing-colon/path: Empty filename in is_relative at src/Darcs/URL.hs:60

Title push foo@missing-colon/path: Empty filename in is_relative at src/Darcs/URL.hs:60
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List bfr, btcoburn, colin, darcs-devel, dmitry.kurochkin, jaredj, kowey, thorkilnaur
Assigned To bfr
Topics ProbablyEasy

Created on 2009-03-06.22:34:19 by colin, last changed 2009-10-23.23:46:10 by admin.

Messages
msg7411 (view) Author: colin Date: 2009-03-06.22:34:17
I did the following:

darcs init
darcs add *
darcs push colin-adams@code.haskell.org/game-tree/
darcs: bug in darcs!
Empty filename in is_relative at src/Darcs/URL.hs:60 compiled Jan 21 2009 01:33:31
I'm unable to check http://darcs.net/maintenance to see if this version is supported.
If it is supported, please report this to bugs@darcs.net
If possible include the output of 'darcs --exact-version'.

darcs --exact-version
darcs compiled on Jan 21 2009, at 01:34:59
# configured Thu Jan 15 14:31:24 PST 2009
./configure /usr/local/share/config.site /usr/local/etc/config.site

Context:

[TAG 2.2.0
Petr Rockai <me@mornfall.net>**20090115150916]
msg7414 (view) Author: btcoburn Date: 2009-03-07.19:54:54
Did you run 'darcs record -a' between add and push? If not, you should have
gotten a "No patches to push..." type warning.

Add/remove tells darcs what files belong in the repository, record saves
changes to those files as patches.

P.P.S. Roundup web forced me to set a priority... but we don't know what it
should be yet.
msg7417 (view) Author: colin Date: 2009-03-07.20:04:00
>>>>> "Ben" == Ben Coburn <bugs@darcs.net> writes:

    Ben> Ben Coburn <btcoburn@silicodon.net> added the comment:

    Ben> Did you run 'darcs record -a' between add and push? If not,
    Ben> you should have gotten a "No patches to push..." type
    Ben> warning.

No.

    Ben> Add/remove tells darcs what files belong in the repository,
    Ben> record saves changes to those files as patches.

    Ben> P.P.S. Roundup web forced me to set a priority... but we
    Ben> don't know what it should be yet.

Low priority.
I was typing the URL incorrectly (I mis-understood the format). When I
worked out what I should be typing, everything worked fine.

Nevertheless it's a bug.
-- 
Colin Adams
Preston Lancashire
msg7534 (view) Author: kowey Date: 2009-03-28.15:09:54
More filepath fixing woes it looks like.  Marking need-volunteer.

Ben: is there any chance you would be interested in tackling this, given your
recent filepath-fixing-fixing patch?  If not, I'm marking ProbablyEasy (although
I could be mistaken).

Colin: thanks very much for the find!  Do you think you could spare a few
moments to help us turn this into a regression test?  See
http://wiki.darcs.net/index.html/RegressionTests for details.
msg7538 (view) Author: colin Date: 2009-03-28.16:07:09
>>>>> "Eric" == Eric Kow <bugs@darcs.net> writes:

    Eric> Colin: thanks very much for the find!  Do you think you
    Eric> could spare a few moments to help us turn this into a
    Eric> regression test? 

No.

I can't remember what to do.
-- 
Colin Adams
Preston Lancashire
msg7540 (view) Author: kowey Date: 2009-03-28.16:11:36
On Sat, Mar 28, 2009 at 16:06:29 +0000, Colin Paul Adams wrote:
>     Eric> Colin: thanks very much for the find!  Do you think you
>     Eric> could spare a few moments to help us turn this into a
>     Eric> regression test? 
> 
> No.
> 
> I can't remember what to do.

No problem!

If somebody could volunteer to turn this into a regression test, it'd be
really helpful.  Should be easy.  Just omit the colon in an ssh path.
msg7560 (view) Author: bfr Date: 2009-03-29.21:17:10
Will take a look at this.
msg7563 (view) Author: bfr Date: 2009-03-29.22:31:05
This has apparently been resolved together with issue1162. I now get

darcs failed:  Not a 
repository: /home/ben/tmp/issue1381/colin-adams@code.haskell.org/game-tree 
(/home/ben/tmp/issue1381/colin-adams@code.haskell.org/game-tree/_darcs/inventory: 
openBinaryFile: does not exist (No such file or directory))

Note that colin's command line had a slash at the end of the path which -- 
together with the above error message -- explains why he ran into the 1162 
bug.
History
Date User Action Args
2009-03-06 22:34:20colincreate
2009-03-07 19:54:57btcoburnsetpriority: bug
nosy: + btcoburn
status: unread -> unknown
messages: + msg7414
2009-03-07 20:04:04colinsetnosy: kowey, simon, thorkilnaur, btcoburn, dmitry.kurochkin, colin
messages: + msg7417
2009-03-28 15:10:01koweysetstatus: unknown -> needs-reproduction
title: Bug by first time user -> push foo@missing-colon/path: Empty filename in is_relative at src/Darcs/URL.hs:60
nosy: + bfr, jaredj
messages: + msg7534
topic: + ProbablyEasy
assignedto: bfr
2009-03-28 16:07:11colinsetnosy: kowey, simon, thorkilnaur, btcoburn, jaredj, dmitry.kurochkin, bfr, colin
messages: + msg7538
2009-03-28 16:11:39koweysetnosy: kowey, simon, thorkilnaur, btcoburn, jaredj, dmitry.kurochkin, bfr, colin
messages: + msg7540
2009-03-29 21:17:12bfrsetstatus: needs-reproduction -> has-patch
nosy: kowey, simon, thorkilnaur, btcoburn, jaredj, dmitry.kurochkin, bfr, colin
messages: + msg7560
2009-03-29 22:31:08bfrsetstatus: has-patch -> resolved
nosy: kowey, simon, thorkilnaur, btcoburn, jaredj, dmitry.kurochkin, bfr, colin
messages: + msg7563
2009-08-25 17:41:44adminsetnosy: + darcs-devel, - simon
2009-08-27 14:16:20adminsetnosy: kowey, darcs-devel, thorkilnaur, btcoburn, jaredj, dmitry.kurochkin, bfr, colin
2009-10-23 22:35:08adminsetassignedto: bfr -> benjamin.franksen
nosy: + benjamin.franksen
2009-10-23 22:35:22adminsetnosy: - bfr
2009-10-23 23:45:50adminsetassignedto: benjamin.franksen -> bfr
nosy: + bfr
2009-10-23 23:46:10adminsetnosy: - benjamin.franksen