merge: remove constant tuple element from 'aborts'
The second element of the tuples in the 'aborts' list is always 'ud',
so let's remove it.
--- a/mercurial/merge.py Wed Nov 19 11:51:31 2014 -0800
+++ b/mercurial/merge.py Tue Nov 18 20:29:25 2014 -0800
@@ -516,12 +516,10 @@
for f, (m, args, msg) in actions.iteritems():
if m in ('c', 'dc'):
if _checkunknownfile(repo, wctx, p2, f):
- aborts.append((f, "ud"))
+ aborts.append(f)
- for f, m in sorted(aborts):
- if m == 'ud':
- repo.ui.warn(_("%s: untracked file differs\n") % f)
- else: assert False, m
+ for f in sorted(aborts):
+ repo.ui.warn(_("%s: untracked file differs\n") % f)
if aborts:
raise util.Abort(_("untracked files in working directory differ "
"from files in requested revision"))