darcs

Issue 2223 whatsnew on moved file is strange

Title whatsnew on moved file is strange
Priority bug Status needs-testcase
Milestone Resolved in
Superseder Nosy List kowey
Assigned To
Topics ThePendingPatch

Created on 2012-08-11.14:54:28 by kowey, last changed 2012-08-11.14:54:28 by kowey.

Messages
msg15967 (view) Author: kowey Date: 2012-08-11.14:54:26
1. Summarise the issue (what were doing, what went wrong?)

$ darcs init
$ touch a1
$ darcs record -lam 'a1'
$ darcs mv a1 a2
$ darcs what a1
move ./a1 ./a2
EYK: Not sure this is really what we want

$ darcs what a2
No changes!

EYK: OK bit weird, but *maybe* you could argue this is some kind of 
intentional UI thing.  Dubious

$ echo hello > a2
$ darcs what a1
What's new in "a1":

move ./a1 ./a2
hunk ./a2 1
+hello

$ darcs what a2
What's new in "a2":

hunk ./a1 1
+hello

I believe this one may deserve a WAT

2. What behaviour were you expecting instead?

A. that whatsnew args are based on the names that I see in the working 
dir, not in pristine (minor)

B. for the darcs whatsnew a2 case above (after adding a hunk patch), 
that we either show all of the change (move + hunk) or none of it.  Here 
we only show the hunk

3. What darcs version are you using? (Try: darcs --exact-version)

2.9.1 plus maybe some patches of my own, but they shouldn't be related

4. What operating system are you running?
  
MacOS X

I'll try to remember to make a test case of this later.  Maybe for now 
see if people expect the same things I do
History
Date User Action Args
2012-08-11 14:54:28koweycreate