Show More
@@ -706,9 +706,7 b' def manifestmerge(' | |||
|
706 | 706 | ) |
|
707 | 707 | else: |
|
708 | 708 | actions[f] = ( |
|
709 |
mergestatemod.ACTION_GET |
|
|
710 | if branchmerge | |
|
711 | else mergestatemod.ACTION_GET, | |
|
709 | mergestatemod.ACTION_GET, | |
|
712 | 710 | (fl2, False), |
|
713 | 711 | b'remote is newer', |
|
714 | 712 | ) |
@@ -722,9 +720,7 b' def manifestmerge(' | |||
|
722 | 720 | ) |
|
723 | 721 | elif nol and n1 == a: # local only changed 'x' |
|
724 | 722 | actions[f] = ( |
|
725 |
mergestatemod.ACTION_GET |
|
|
726 | if branchmerge | |
|
727 | else mergestatemod.ACTION_GET, | |
|
723 | mergestatemod.ACTION_GET, | |
|
728 | 724 | (fl1, False), |
|
729 | 725 | b'remote is newer', |
|
730 | 726 | ) |
@@ -999,8 +995,6 b' def calculateupdates(' | |||
|
999 | 995 | |
|
1000 | 996 | for f, a in sorted(pycompat.iteritems(mresult1.actions)): |
|
1001 | 997 | m, args, msg = a |
|
1002 | if m == mergestatemod.ACTION_GET_OTHER_AND_STORE: | |
|
1003 | m = mergestatemod.ACTION_GET | |
|
1004 | 998 | repo.ui.debug(b' %s: %s -> %s\n' % (f, msg, m)) |
|
1005 | 999 | if f in fbids: |
|
1006 | 1000 | d = fbids[f] |
@@ -1235,7 +1229,6 b' def emptyactions():' | |||
|
1235 | 1229 | mergestatemod.ACTION_KEEP, |
|
1236 | 1230 | mergestatemod.ACTION_PATH_CONFLICT, |
|
1237 | 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 | 1272 | if op == b'other': |
|
1280 | 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 | 1275 | moves = [] |
|
1287 | 1276 | for m, l in actions.items(): |
|
1288 | 1277 | l.sort() |
@@ -1827,7 +1816,6 b' def update(' | |||
|
1827 | 1816 | mergestatemod.ACTION_EXEC, |
|
1828 | 1817 | mergestatemod.ACTION_REMOVE, |
|
1829 | 1818 | mergestatemod.ACTION_PATH_CONFLICT_RESOLVE, |
|
1830 | mergestatemod.ACTION_GET_OTHER_AND_STORE, | |
|
1831 | 1819 | ): |
|
1832 | 1820 | msg = _(b"conflicting changes") |
|
1833 | 1821 | hint = _(b"commit or update --clean to discard changes") |
@@ -1898,10 +1886,6 b' def update(' | |||
|
1898 | 1886 | actions[m] = [] |
|
1899 | 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 | 1889 | if not util.fscasesensitive(repo.path): |
|
1906 | 1890 | # check collision between files only in p2 for clean update |
|
1907 | 1891 | if not branchmerge and ( |
@@ -113,8 +113,6 b" ACTION_DIR_RENAME_MOVE_LOCAL = b'dm'" | |||
|
113 | 113 | ACTION_KEEP = b'k' |
|
114 | 114 | ACTION_EXEC = b'e' |
|
115 | 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 | 118 | class mergestate(object): |
General Comments 0
You need to be logged in to leave comments.
Login now