mercurial/__init__.py
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 12 Dec 2014 23:18:36 -0800
changeset 23653 0297d8469350
parent 0 9117c6561b0b
child 27220 4374d819ccd5
permissions -rw-r--r--
merge: don't overwrite untracked file at directory rename target When a directory was renamed and a new untracked file was added in the new directory and the remote directory added a file by the same name in the old directory, the local untracked file gets overwritten, as demonstrated by the broken test case in test-rename-dir-merge. Fix by checking for unknown files for 'dg' actions too. Since _checkunknownfile() currently expects the same filename in both contexts, we need to add a new parameter for the remote filename to it.