Mercurial > hg
comparison mercurial/merge.py @ 23652:6fcc3669e483
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.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 18 Nov 2014 20:29:25 -0800 |
parents | 72da02d7f126 |
children | 0297d8469350 |
comparison
equal
deleted
inserted
replaced
23651:72da02d7f126 | 23652:6fcc3669e483 |
---|---|
514 aborts = [] | 514 aborts = [] |
515 if not force: | 515 if not force: |
516 for f, (m, args, msg) in actions.iteritems(): | 516 for f, (m, args, msg) in actions.iteritems(): |
517 if m in ('c', 'dc'): | 517 if m in ('c', 'dc'): |
518 if _checkunknownfile(repo, wctx, p2, f): | 518 if _checkunknownfile(repo, wctx, p2, f): |
519 aborts.append((f, "ud")) | 519 aborts.append(f) |
520 | 520 |
521 for f, m in sorted(aborts): | 521 for f in sorted(aborts): |
522 if m == 'ud': | 522 repo.ui.warn(_("%s: untracked file differs\n") % f) |
523 repo.ui.warn(_("%s: untracked file differs\n") % f) | |
524 else: assert False, m | |
525 if aborts: | 523 if aborts: |
526 raise util.Abort(_("untracked files in working directory differ " | 524 raise util.Abort(_("untracked files in working directory differ " |
527 "from files in requested revision")) | 525 "from files in requested revision")) |
528 | 526 |
529 for f, (m, args, msg) in actions.iteritems(): | 527 for f, (m, args, msg) in actions.iteritems(): |