Commit Graph

20 Commits

Author SHA1 Message Date
Mads Kiilerich
acb5117176 More verbose logging when filemerge searches for merge-tool
Previously it was very hard to find out what was going on when the expected
merge tool wasn't used. This patch tries to improve that.

hg merge -v now shows which tools were searched for but not found.
2008-11-07 02:47:12 +01:00
Matt Mackall
a65ef7bc5d util: add sort helper 2008-06-27 18:28:45 -05:00
Matt Mackall
25b1f97147 context: remove islink and isexec methods 2008-06-26 13:52:16 -05:00
Matt Mackall
d462e1fc26 simplify flag handling
add _checklink var to dirstate
introduce dirstate.flagfunc
switch users of util.execfunc/linkfunc to flagfunc
change manifestdict.set to take a flags string
change ctx.fileflags to ctx.flags
change gitmode func to a dict
remove util.execfunc/linkfunc
2008-06-26 13:46:34 -05:00
Matt Mackall
619e79c725 Merge with -stable 2008-04-13 11:31:45 -05:00
Matt Mackall
8d82cba09a merge: introduce mergestate 2008-04-10 15:02:24 -05:00
Dov Feldstern
b457436bd5 use internal merge tool when specified for a merge-pattern in hgrc
It is possible to specify in the hgrc file that one of the internal merge
tools (internal:fail, internal:local or internal:other) be used for
performing merges on files matching a given pattern. However, this setting
is not being acted upon (the merge tool is not found). This patch fixes that.
2008-04-04 02:21:53 +03:00
Joel Rosdahl
4f8012378a Remove unused imports 2008-03-06 22:23:41 +01:00
Joel Rosdahl
5dae3059a0 Expand import * to allow Pyflakes to find problems 2008-03-06 22:23:26 +01:00
Steve Borho
c9911f3bdf filemerge: more backwards compatible behavior for ui.merge
if ui.merge matches a tool in [merge-tools], it is used as the
default tool selection but may be rejected by binary or gui or
other checks.  If ui.merge does not match a merge tool, it is
used unconditionally.
2008-02-06 20:44:25 -06:00
Steve Borho
a42f97b40e filemerge: add 'checkchanged' merge tool property 2008-02-06 20:32:06 -06:00
Steve Borho
eda1ae23fa filemerge: wrap quotes around tool path 2008-02-04 19:38:34 -06:00
dhruva
3ad3c6c3ba filemerge: fix pattern matching 2008-02-04 09:56:01 -06:00
Lee Cantey
abeb7dc0ee filemerge: fix path to working file when fixeol is enabled 2008-02-03 23:58:02 -08:00
Matt Mackall
5d1d504393 filemerge: handle missing regappend 2008-02-04 09:51:56 -06:00
Matt Mackall
ad1e6058b9 filemerge: add config item for GUI tools
<tool>.gui indicates whether a tool requires a GUI to run
2008-02-03 19:29:05 -06:00
Matt Mackall
2c7d69802c merge: add registry look up bits to tool search 2008-02-03 19:29:05 -06:00
Matt Mackall
6b42261cb8 merge: add support for tool EOL fixups
specified with merge-tools:<tool>.fixeol=True
2008-02-03 19:29:05 -06:00
Matt Mackall
9d996cd13f merge: allow smarter tool configuration
Add [merge-tool] hgrc section with:
 <tool>.executable = name or path (<tool>)
 <tool>.args = args with $local/base/other/output ($local $base $other)
 <tool>.priority = priority (default 0)
 <tool>.binary = handles binary (False)
 <tool>.symlink = handles symlinks (False)
 <tool>.checkconflict = check for conflict markers (False)
 <tool>.premerge = try internal simplemerge (True if not binary or symlink)

Four built-in tools: internal:{merge,local,other,fail}

Add [merge-patterns] section of the form:
 <pattern> = <tool>

Priority of settings is:
 HGMERGE
 merge-patterns
 ui:merge
 merge-tools by priority
 hgmerge, if it can be found

Changes:
 unsuccessful merges leave .orig files
2008-02-03 19:29:05 -06:00
Matt Mackall
22c4273b99 filemerge: pull file-merging code into its own module 2008-02-03 19:29:05 -06:00