# HG changeset patch # User Martin von Zweigbergk # Date 1415949135 28800 # Node ID 3177d710630d05f5b4c062bb0ee58555b186fe00 # Parent fc73293f6060eeb3470733da2f45dc19e0e83efc merge: drop underscore prefix from _checkunknown() The method has been called from commands.py since 3eab42088be4 (update: just merge unknown file collisions, 2012-02-09), so drop the underscore prefix that suggests that it's private. diff -r fc73293f6060 -r 3177d710630d hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Wed Nov 12 14:47:48 2014 +0000 +++ b/hgext/largefiles/overrides.py Thu Nov 13 23:12:15 2014 -0800 @@ -372,7 +372,7 @@ wlock.release() # Before starting the manifest merge, merge.updates will call -# _checkunknown to check if there are any files in the merged-in +# checkunknown to check if there are any files in the merged-in # changeset that collide with unknown files in the working copy. # # The largefiles are seen as unknown, so this prevents us from merging diff -r fc73293f6060 -r 3177d710630d mercurial/commands.py --- a/mercurial/commands.py Wed Nov 12 14:47:48 2014 +0000 +++ b/mercurial/commands.py Thu Nov 13 23:12:15 2014 -0800 @@ -6184,7 +6184,7 @@ raise util.Abort(_("uncommitted changes")) if rev is None: rev = repo[repo[None].branch()].rev() - mergemod._checkunknown(repo, repo[None], repo[rev]) + mergemod.checkunknown(repo, repo[None], repo[rev]) repo.ui.setconfig('ui', 'forcemerge', tool, 'update') diff -r fc73293f6060 -r 3177d710630d mercurial/merge.py --- a/mercurial/merge.py Wed Nov 12 14:47:48 2014 +0000 +++ b/mercurial/merge.py Thu Nov 13 23:12:15 2014 -0800 @@ -304,7 +304,7 @@ and repo.dirstate.normalize(f) not in repo.dirstate and mctx[f].cmp(wctx[f])) -def _checkunknown(repo, wctx, mctx): +def checkunknown(repo, wctx, mctx): "check for collisions between unknown files and files in mctx" error = False