##// 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 Raise an exception if the merge cannot be completed because the repo is
530 Raise an exception if the merge cannot be completed because the repo is
531 narrowed.
531 narrowed.
532 """
532 """
533 nooptypes = {b'k'} # TODO: handle with nonconflicttypes
533 # TODO: handle with nonconflicttypes
534 nonconflicttypes = set(b'a am c cm f g gs r e'.split())
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 # We mutate the items in the dict during iteration, so iterate
545 # We mutate the items in the dict during iteration, so iterate
536 # over a copy.
546 # over a copy.
537 for f, action in list(mresult.actions.items()):
547 for f, action in list(mresult.actions.items()):
General Comments 0
You need to be logged in to leave comments. Login now