-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mv: gnu test case part-hardlink
fix
#6632
base: main
Are you sure you want to change the base?
Conversation
GNU testsuite comparison:
|
Bravo
|
f32325e
to
1da64ed
Compare
GNU testsuite comparison:
|
1 similar comment
GNU testsuite comparison:
|
1da64ed
to
2c7bee1
Compare
GNU testsuite comparison:
|
GNU testsuite comparison:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for tackling these issues! However, combining these three behavioral changes seems like a bad idea, given that each of them have delicate consequences.
It seems that get_dir_content
is the entirely wrong tool to approach mv
, and it causes incorrect behavior.
Finally, it seems you fell into a common trap / bad pattern: Guessing a potential error condition (and not detecting others), then doing an action (and badly handling most error conditions.) This causes unhelpful error messages and unnecessary syscalls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, I meant to set the "Request changes" flag. See above for my reasoning. In particular, get_dir_content
must go.
May I suggest to split the tree changes into two or three PRs?
4b9e64e
to
666f8cb
Compare
GNU testsuite comparison:
|
666f8cb
to
119ce64
Compare
GNU testsuite comparison:
|
119ce64
to
e8c9ffc
Compare
GNU testsuite comparison:
|
3754a06
to
338ed28
Compare
@BenWiederhake I cleaned up this PR. Now, it focuses solely on the directory copying part. I'll work on verbose output and error reporting next. For now, could you let me know if this approach looks okay? |
GNU testsuite comparison:
|
GNU testsuite comparison:
|
@sylvestre 😅 I'm working it, i didn't thoroughly tested it on other platforms 😕 just found out that this would break copying on mac os my bad. |
@matrixhead do you have an update on this ? :) thanks |
d90095e
to
79b6f86
Compare
Sorry for the late reply and for being unmotivated 😓. I've started working on it again 😃. |
GNU testsuite comparison:
|
348af04
to
0e8e866
Compare
GNU testsuite comparison:
|
814650c
to
8c91ed2
Compare
GNU testsuite comparison:
|
8c91ed2
to
380bd0b
Compare
GNU testsuite comparison:
|
GNU testsuite comparison:
|
GNU testsuite comparison:
|
I tested this in macOS and windows, everything seems to be working |
fix #6631behaviours changed- mv will now preserve links during an inter-device move.- Previously, mv would silently fail to create a backup whenno-target-directory
was specified and the destination ended with a/
This patch resolves that issue.- The progress bar will now work for simple inter-device file moves as well.This pr now focus on copy directory part of mv.