New submission from Luke Plant <[EMAIL PROTECTED]>:

I do "darcs whatsnew somefile" and the performance is terrible (this is working 
on a remote filesystem that is mounted locally, so it massively exaggerates any 
problems).  Doing an strace on this simple operation produces a huge file, 
which appears to be doing lstat64 on every file in the _darcs/pristine/ and the 
working copy.

I can't think of any reason why that would be necessary, especially since I 
specifically asked for just one file.

In a bash script:

#!/bin/bash
mkdir mytempdir || exit 1
cd mytempdir
darcs init
touch file1 file2 file3 file4
darcs add file1 file2 file3 file4
darcs record -am "test"
# Expect the following to produce no output:
strace darcs whatsnew file1 2>&1 > /dev/null | egrep 'file2|file3|file4'

----------
messages: 1406
nosy: EricKow, beschmi, droundy, spookylukey, tommy
priority: wishlist
status: unread
title: "darcs whatsnew somefile" lstats every file in the working copy and 
pristine/ directory

____________________________________
Darcs issue tracker <[EMAIL PROTECTED]>
<http://bugs.darcs.net/issue390>
____________________________________

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to