[darcs-devel] [issue1196] Asking for changes in /. of directory that doesn't exist gives changes in entire repo

Reinier Lamers bugs at darcs.net
Mon Nov 3 22:06:28 UTC 2008


New submission from Reinier Lamers <tux_rocker at reinier.de>:

See this interaction of me with darcs:

reinier at adim:~/Sources/darcs-unstable$ darcs w thisdirdoesntexist/.
hunk ./tests/whatsnew-file.sh 55
-darcs wh foo foo/../foo/. > out
-cat out
-grep date out | wc -l | grep 1
+# This one fails actually, but it's not my fault. Filing a bug.
+#darcs wh foo foo/../foo/. > out
+#cat out
+#grep date out | wc -l | grep 1

I ask for changes in "thisdirdoesntexist/.", but instead it gives me all changes
in the repo. I traced the problem to the point that I found out that
Darcs.RepoPath.ioAbsolute returns "" when given "thisdirdoesntexist/." as input.
This "" is interpreted as "give me all changes" by subsequent functions.

----------
messages: 6576
nosy: dagit, dmitry.kurochkin, kowey, simon, thorkilnaur, tux_rocker
priority: bug
status: chatting
title: Asking for changes in /. of directory that doesn't exist gives changes in entire repo

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1196>
__________________________________


More information about the darcs-devel mailing list