##// END OF EJS Templates
merge: remove no longer required ACTION_GET_OTHER_AND_STORE...
Pulkit Goyal -
r45834:c515c54f default
parent child Browse files
Show More
@@ -706,9 +706,7 b' def manifestmerge('
706 )
706 )
707 else:
707 else:
708 actions[f] = (
708 actions[f] = (
709 mergestatemod.ACTION_GET_OTHER_AND_STORE
709 mergestatemod.ACTION_GET,
710 if branchmerge
711 else mergestatemod.ACTION_GET,
712 (fl2, False),
710 (fl2, False),
713 b'remote is newer',
711 b'remote is newer',
714 )
712 )
@@ -722,9 +720,7 b' def manifestmerge('
722 )
720 )
723 elif nol and n1 == a: # local only changed 'x'
721 elif nol and n1 == a: # local only changed 'x'
724 actions[f] = (
722 actions[f] = (
725 mergestatemod.ACTION_GET_OTHER_AND_STORE
723 mergestatemod.ACTION_GET,
726 if branchmerge
727 else mergestatemod.ACTION_GET,
728 (fl1, False),
724 (fl1, False),
729 b'remote is newer',
725 b'remote is newer',
730 )
726 )
@@ -999,8 +995,6 b' def calculateupdates('
999
995
1000 for f, a in sorted(pycompat.iteritems(mresult1.actions)):
996 for f, a in sorted(pycompat.iteritems(mresult1.actions)):
1001 m, args, msg = a
997 m, args, msg = a
1002 if m == mergestatemod.ACTION_GET_OTHER_AND_STORE:
1003 m = mergestatemod.ACTION_GET
1004 repo.ui.debug(b' %s: %s -> %s\n' % (f, msg, m))
998 repo.ui.debug(b' %s: %s -> %s\n' % (f, msg, m))
1005 if f in fbids:
999 if f in fbids:
1006 d = fbids[f]
1000 d = fbids[f]
@@ -1235,7 +1229,6 b' def emptyactions():'
1235 mergestatemod.ACTION_KEEP,
1229 mergestatemod.ACTION_KEEP,
1236 mergestatemod.ACTION_PATH_CONFLICT,
1230 mergestatemod.ACTION_PATH_CONFLICT,
1237 mergestatemod.ACTION_PATH_CONFLICT_RESOLVE,
1231 mergestatemod.ACTION_PATH_CONFLICT_RESOLVE,
1238 mergestatemod.ACTION_GET_OTHER_AND_STORE,
1239 )
1232 )
1240 }
1233 }
1241
1234
@@ -1279,10 +1272,6 b' def applyupdates('
1279 if op == b'other':
1272 if op == b'other':
1280 ms.addmergedother(f)
1273 ms.addmergedother(f)
1281
1274
1282 # add ACTION_GET_OTHER_AND_STORE to mergestate
1283 for e in actions[mergestatemod.ACTION_GET_OTHER_AND_STORE]:
1284 ms.addmergedother(e[0])
1285
1286 moves = []
1275 moves = []
1287 for m, l in actions.items():
1276 for m, l in actions.items():
1288 l.sort()
1277 l.sort()
@@ -1827,7 +1816,6 b' def update('
1827 mergestatemod.ACTION_EXEC,
1816 mergestatemod.ACTION_EXEC,
1828 mergestatemod.ACTION_REMOVE,
1817 mergestatemod.ACTION_REMOVE,
1829 mergestatemod.ACTION_PATH_CONFLICT_RESOLVE,
1818 mergestatemod.ACTION_PATH_CONFLICT_RESOLVE,
1830 mergestatemod.ACTION_GET_OTHER_AND_STORE,
1831 ):
1819 ):
1832 msg = _(b"conflicting changes")
1820 msg = _(b"conflicting changes")
1833 hint = _(b"commit or update --clean to discard changes")
1821 hint = _(b"commit or update --clean to discard changes")
@@ -1898,10 +1886,6 b' def update('
1898 actions[m] = []
1886 actions[m] = []
1899 actions[m].append((f, args, msg))
1887 actions[m].append((f, args, msg))
1900
1888
1901 # ACTION_GET_OTHER_AND_STORE is a mergestatemod.ACTION_GET + store in mergestate
1902 for e in actions[mergestatemod.ACTION_GET_OTHER_AND_STORE]:
1903 actions[mergestatemod.ACTION_GET].append(e)
1904
1905 if not util.fscasesensitive(repo.path):
1889 if not util.fscasesensitive(repo.path):
1906 # check collision between files only in p2 for clean update
1890 # check collision between files only in p2 for clean update
1907 if not branchmerge and (
1891 if not branchmerge and (
@@ -113,8 +113,6 b" ACTION_DIR_RENAME_MOVE_LOCAL = b'dm'"
113 ACTION_KEEP = b'k'
113 ACTION_KEEP = b'k'
114 ACTION_EXEC = b'e'
114 ACTION_EXEC = b'e'
115 ACTION_CREATED_MERGE = b'cm'
115 ACTION_CREATED_MERGE = b'cm'
116 # GET the other/remote side and store this info in mergestate
117 ACTION_GET_OTHER_AND_STORE = b'gs'
118
116
119
117
120 class mergestate(object):
118 class mergestate(object):
General Comments 0
You need to be logged in to leave comments. Login now