Show More
@@ -896,6 +896,8 b' class localrepository:' | |||
|
896 | 896 | |
|
897 | 897 | for f, n in mw.iteritems(): |
|
898 | 898 | if f in m2: |
|
899 | s = 0 | |
|
900 | ||
|
899 | 901 | if n != m2[f]: |
|
900 | 902 | a = ma.get(f, nullid) |
|
901 | 903 | if n != a and m2[f] != a: |
@@ -906,9 +908,24 b' class localrepository:' | |||
|
906 | 908 | a, b, c = mfa.get(f, 0), mfw[f], mf2[f] |
|
907 | 909 | mode = ((a^b) | (a^c)) ^ a |
|
908 | 910 | merge[f] = (m1.get(f, nullid), m2[f], mode) |
|
911 | s = 1 | |
|
909 | 912 | elif m2[f] != a: |
|
910 | 913 | self.ui.debug(" remote %s is newer, get\n" % f) |
|
911 | 914 | get[f] = m2[f] |
|
915 | s = 1 | |
|
916 | ||
|
917 | if not s and mfw[f] != mf2[f]: | |
|
918 | if force: | |
|
919 | self.ui.debug(" updating permissions for %s\n" % f) | |
|
920 | set_exec(self.wjoin(f), mf2[f]) | |
|
921 | else: | |
|
922 | a, b, c = mfa.get(f, 0), mfw[f], mf2[f] | |
|
923 | mode = ((a^b) | (a^c)) ^ a | |
|
924 | print a, b, c, mode | |
|
925 | if mode != b: | |
|
926 | self.ui.debug(" updating permissions for %s\n" % f) | |
|
927 | set_exec(self.wjoin(f), mode) | |
|
928 | ||
|
912 | 929 | del m2[f] |
|
913 | 930 | elif f in ma: |
|
914 | 931 | if not force and n != ma[f]: |
General Comments 0
You need to be logged in to leave comments.
Login now