##// END OF EJS Templates
merge: use ACTION_* constants instead of values in _filternarrowactions()...
Pulkit Goyal -
r45903:e3826f1d default
parent child Browse files
Show More
@@ -530,8 +530,18 b' def _filternarrowactions(narrowmatch, br'
530 530 Raise an exception if the merge cannot be completed because the repo is
531 531 narrowed.
532 532 """
533 nooptypes = {b'k'} # TODO: handle with nonconflicttypes
534 nonconflicttypes = set(b'a am c cm f g gs r e'.split())
533 # TODO: handle with nonconflicttypes
534 nooptypes = {mergestatemod.ACTION_KEEP}
535 nonconflicttypes = {
536 mergestatemod.ACTION_ADD,
537 mergestatemod.ACTION_ADD_MODIFIED,
538 mergestatemod.ACTION_CREATED,
539 mergestatemod.ACTION_CREATED_MERGE,
540 mergestatemod.ACTION_FORGET,
541 mergestatemod.ACTION_GET,
542 mergestatemod.ACTION_REMOVE,
543 mergestatemod.ACTION_EXEC,
544 }
535 545 # We mutate the items in the dict during iteration, so iterate
536 546 # over a copy.
537 547 for f, action in list(mresult.actions.items()):
General Comments 0
You need to be logged in to leave comments. Login now