Re: nvm.alt_tmpdir

Stephen Leake <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
Stephen Leake <[email protected]> writes:

> Nathaniel Smith <[email protected]> writes:
>
>> On Mon, May 16, 2011 at 1:23 PM, Stephen Leake
>> <[email protected]> wrote:
>>>    Note that 'mv' between two drives succeeds on Windows
>>
>> Wouldn't it be easier to just enhance the POSIX move-this-file
>> function so that it checks if they're on the same filesystem (you can
>> get this from stat(2)), and then either calls rename(2) or does a
>> copy+unlink?
>
> Hmm.
>
> Yes, that would be easier. 

The issue of how to write a test for it is still relevant.

But it's far less code, so testing only in actual use would not be too bad.

-- 
-- Stephe

_______________________________________________
Monotone-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.