darcs

Issue 951 Confusing behaviour for apply --repodir x ./y

Title Confusing behaviour for apply --repodir x ./y
Priority bug Status duplicate
Milestone Resolved in
Superseder fix fix_filepath to work with --repodir (and add test demonstrating this).
View: 950
Nosy List 458629-forwarded, darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy, twb
Assigned To
Topics

Created on 2008-07-05.09:17:19 by twb, last changed 2009-08-27.14:01:18 by admin.

Messages
msg5186 (view) Author: twb Date: 2008-07-05.09:17:15
Darcs maintainers,

Below is a bug report from a Debian user (coincidentally, also me).
The associated Debian BTS ticket is http://bugs.debian.org/458629.
Please ensure that 458629@bugs.debian.org remains in the nosy list for
this roundup ticket.

This bug still exists in 2.0.0.

> Where x is a repository and y is a patch bundle,
>
>   $ darcs apply --repodir x ./y
>   darcs: y: openBinaryFile: does not exist (No such file or directory)
>
> This behaviour is confusing, and the error message is unhelpful.
> Once it occurs to the user to try
>
>   $ darcs apply --repodir x $PWD/y
>   Finished applying...
>
> It becomes obvious that is chdir'ing before attempting to access the
> patch bundle.  Either it should not do so, or it should print a more
> meaningful error message (for example, including the absolute path
> that it tried to open).

Note that this is not limited to apply; other commands are affected:

  $ mkdir x y
  $ map darcs init --repodir -- x y
  $ darcs pull --repodir x y

  darcs failed:  Not a repository: y (y/_darcs/inventory: openBinaryFile: does not exist (No such file or directory))
  $ darcs pull --repodir x $PWD/y
  No remote changes to pull in!
  $ darcs push --repodir x y

  darcs failed:  Not a repository: y (y/_darcs/inventory: openBinaryFile: does not exist (No such file or directory))
  $ darcs push --repodir x $PWD/y
  Pushing to "/tmp/with-temp-dir.G26031/y"...
  No recorded local changes to push!
History
Date User Action Args
2008-07-05 09:17:20twbcreate
2008-07-08 10:33:58koweysetpriority: bug
status: unread -> duplicate
superseder: + fix fix_filepath to work with --repodir (and add test demonstrating this).
nosy: tommy, beschmi, dagit, twb, 458629-forwarded
2009-08-06 21:09:13adminsetnosy: + dmitry.kurochkin, simon, kowey, thorkilnaur, - beschmi
2009-08-11 00:18:23adminsetnosy: - dagit
2009-08-25 18:13:10adminsetnosy: + darcs-devel, - simon
2009-08-27 14:01:18adminsetnosy: tommy, kowey, darcs-devel, twb, thorkilnaur, dmitry.kurochkin, 458629-forwarded