# HG changeset patch # User Mads Kiilerich # Date 1384634789 18000 # Node ID 36333ff8c54da9c4157526fccace177fa7a919da # Parent 243ea5ffdf3111c784ea83ffe5b65c5246eab3ef largefiles: drop redundant special handling of merges of renames It is unclear what cases this was supposed to cover but it do no longer seem relevant. diff -r 243ea5ffdf31 -r 36333ff8c54d hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Sat Nov 16 15:46:29 2013 -0500 +++ b/hgext/largefiles/overrides.py Sat Nov 16 15:46:29 2013 -0500 @@ -415,8 +415,7 @@ return processed # Override filemerge to prompt the user about how they wish to merge -# largefiles. This will handle identical edits, and copy/rename + -# edit without prompting the user. +# largefiles. This will handle identical edits without prompting the user. def overridefilemerge(origfn, repo, mynode, orig, fcd, fco, fca): # Use better variable names here. Because this is a wrapper we cannot # change the variable names in the function declaration. @@ -427,10 +426,6 @@ if not fcother.cmp(fcdest): # files identical? return None - # backwards, use working dir parent as ancestor - if fcancestor == fcother: - fcancestor = fcdest.parents()[0] - if orig != fcother.path(): repo.ui.status(_('merging %s and %s to %s\n') % (lfutil.splitstandin(orig), @@ -440,14 +435,6 @@ repo.ui.status(_('merging %s\n') % lfutil.splitstandin(fcdest.path())) - if fcancestor.path() != fcother.path() and fcother.data() == \ - fcancestor.data(): - return 0 - if fcancestor.path() != fcdest.path() and fcdest.data() == \ - fcancestor.data(): - repo.wwrite(fcdest.path(), fcother.data(), fcother.flags()) - return 0 - if repo.ui.promptchoice(_('largefile %s has a merge conflict\n' 'keep (l)ocal or take (o)ther?' '$$ &Local $$ &Other') %