I think user should be able to specify source and target branches, and I see no problem in that, if there is no file with the same name in the middle (in a branch between the source and target branches).
I would suggest to check existence of the same file on all branches between source and target, and return error if the same filename exists in any of the branches. If not exist then lets allow the user to copy-down freely. The main goal in my mind is to keep consistent /union. But some users may prefer no checking at all, I can't think of any use case, but the best solution is to do checks by default, and allow user to specify a parameter to skip the checks, if he knows what is he doing :) That way you give the power and the responsibility to users hands. Tomas M On Mon, Jul 1, 2013 at 1:31 PM, <sf...@users.sourceforge.net> wrote: > > Tomas, > Thank you for the comment. > > Tomas M: >> 1: /rw/file.txt (most recently updated, copied-up here, some time ago >> already) >> 2: /ro/file.txt (readonly original) >> 3: /rw/ (empty writable branch) > ::: >> 1: /rw/ >> 2: /ro/file.txt (readonly original) >> 3: /rw/file.txt (most recently updated) > > By default, aufs finds the same-named file before the next writable > branch and returns an error. > But if a user explicitly specify the destination branch, aufs accepts > and behaves as you wrote. > > Hmm, it may be better not to implement the source/target branch options. > > > J. R. Okajima ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev