darcs

Issue 1184 darcs send: does a chdir $PWD at the end?

Title darcs send: does a chdir $PWD at the end?
Priority wishlist Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, twb
Assigned To
Topics

Created on 2008-10-29.03:06:38 by twb, last changed 2009-08-27.14:29:25 by admin.

Messages
msg6514 (view) Author: twb Date: 2008-10-29.03:06:35
I use msmtp as sendmail, and it takes quite a while to terminate
because doesn't exit until the remote SMTP server accepts the message.
Anyway, while msmtp was running, I moved my darcs tree from
darcs-make--tmp to darcs-make, thinking that darcs send wouldn't care:
why would it need to change directory?  Apparently I was wrong, as the
transcript below shows.

$ darcs send -p 'of trivial' http://darcs.net/unstable --all
Patch bundle will be sent to: droundy@darcs.net, darcs-users@darcs.net

You need a passphrase to unlock the secret key for
user: "Trent W. Buck <trentbuck@gmail.com>"
1024-bit DSA key, ID 24EDC406, created 2006-12-06

Waiting for Emacs...
Successfully sent patch bundle to: droundy@darcs.net, darcs-users@darcs.net.
darcs: /home/twb/VCS/darcs-make-tmp: setCurrentDirectory: does not exist (No such file or directory)

$
msg6561 (view) Author: droundy Date: 2008-11-03.00:04:06
Moving darcs while it is running is not in general safe (although for commands
like send it shouldn't cause any trouble).  We often use absolute paths to keep
things simple so we don't have to keep translating things when the current
working directory changes.

Another alternative, of course, would be to never change the current working
directory, but that would be a major rewrite.
msg8347 (view) Author: kowey Date: 2009-08-22.12:01:21
I don't think it's worthwhile to attempt fixing this.  Sorry!
History
Date User Action Args
2008-10-29 03:06:38twbcreate
2008-11-03 00:04:10droundysetpriority: wishlist
nosy: + droundy
status: unread -> unknown
messages: + msg6561
2009-08-06 18:01:44adminsetnosy: + markstos, jast, Serware, darcs-devel, zooko, mornfall, tommy, beschmi, - droundy, twb
2009-08-06 21:13:55adminsetnosy: - beschmi
2009-08-10 21:50:31adminsetnosy: + twb, - tommy, markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:49:52adminsetnosy: - dagit
2009-08-22 12:01:23koweysetstatus: unknown -> wont-fix
nosy: kowey, simon, twb, thorkilnaur, dmitry.kurochkin
messages: + msg8347
2009-08-25 17:33:01adminsetnosy: + darcs-devel, - simon
2009-08-27 14:29:25adminsetnosy: kowey, darcs-devel, twb, thorkilnaur, dmitry.kurochkin