161 out = "" |
161 out = "" |
162 back = a + ".orig" |
162 back = a + ".orig" |
163 util.copyfile(a, back) |
163 util.copyfile(a, back) |
164 |
164 |
165 if orig != fco.path(): |
165 if orig != fco.path(): |
166 repo.ui.status(_("merging %s and %s to %s\n") % (orig, fco.path(), fd)) |
166 ui.status(_("merging %s and %s to %s\n") % (orig, fco.path(), fd)) |
167 else: |
167 else: |
168 repo.ui.status(_("merging %s\n") % fd) |
168 ui.status(_("merging %s\n") % fd) |
169 |
169 |
170 repo.ui.debug(_("my %s other %s ancestor %s\n") % (fcd, fco, fca)) |
170 ui.debug(_("my %s other %s ancestor %s\n") % (fcd, fco, fca)) |
171 |
171 |
172 # do we attempt to simplemerge first? |
172 # do we attempt to simplemerge first? |
173 if _toolbool(ui, tool, "premerge", not (binary or symlink)): |
173 if _toolbool(ui, tool, "premerge", not (binary or symlink)): |
174 r = simplemerge.simplemerge(ui, a, b, c, quiet=True) |
174 r = simplemerge.simplemerge(ui, a, b, c, quiet=True) |
175 if not r: |
175 if not r: |