merge: remove "case" comments
authorMads Kiilerich <mads@kiilerich.com>
Tue, 15 Jan 2013 01:05:12 +0100
changeset 18339 aadefcee1f5e
parent 18338 384df4db6520
child 18340 8802277c40ee
merge: remove "case" comments The comments introduced in f05c182430a0 seems important ... but the context has apparently been lost and they do not have any value now.
mercurial/merge.py
--- a/mercurial/merge.py	Wed Jan 09 02:02:45 2013 +0100
+++ b/mercurial/merge.py	Tue Jan 15 01:05:12 2013 +0100
@@ -257,7 +257,7 @@
             f2 = movewithdir[f]
             act("remote renamed directory to " + f2, "d", f, None, f2,
                 m1.flags(f))
-        elif f in copy: # case 2 A,B/B/B or case 4,21 A/B/B
+        elif f in copy:
             f2 = copy[f]
             act("local copied/moved to " + f2, "m", f, f2, f, False)
         elif f in ma: # clean, a different, no remote
@@ -285,10 +285,10 @@
                 m2.flags(f))
         elif f in copy:
             f2 = copy[f]
-            if f2 in m2: # rename case 1, A/A,B/A
+            if f2 in m2:
                 act("remote copied to " + f, "m",
                     f2, f, f, False)
-            else: # case 3,20 A/B/A
+            else:
                 act("remote moved to " + f, "m",
                     f2, f, f, True)
         elif f not in ma: