[darcs-devel] [darcs #208] relative paths still not right..
via RT
bugs at darcs.net
Sun Feb 6 12:04:17 PST 2005
Sun Feb 06 15:04:14 2005: New ticket: 208.
Transaction: Ticket created by guest
Queue: Darcs
Subject: relative paths still not right..
Owner: Nobody
Requestors: zander at kde.org
Status: new
Ticket <URL: http://bugs.darcs.net/.//Ticket/Display.html?id=208 >
A push to a default repository only works from the repo's root dir.
Consider this:
cd bar
darcs push ../foo
this sets the default repo of 'bar' to a relative path.
Now if you go to a subdir of 'bar' then the relative path will still
be used to push; but from the subdir which fails.
to reproduce:
mkdir foo
(cd foo && darcs init)
mkdir bar
cd bar
darcs init
darcs pull -a ../foo #sets default repo to relative path
mkdir subdir
cd subdir
darcs push
Gives me (with darcs 1.0.2)
Invalid repository: foo
Fail: foo/_darcs/inventory: openBinaryFile: does not exist (No such
file or directory)
I suggest that darcs cd to the root of the repo before
pushing/pulling.
More information about the darcs-devel
mailing list