Staging
v0.5.1
v0.5.1
https://foss.heptapod.net/mercurial/hgview
Revision 1077af07133290b7c141c01d1207b98e19bedd05 authored by Alain Leufroy on 14 March 2013, 12:58:38 UTC, committed by Alain Leufroy on 14 March 2013, 12:58:38 UTC
problem: HgView removes the header of the displayed diff assuming that the content data starts this ``os.linesep+'@@'``. But the newline chars may be different from the system linesep. By this way the entire diff is interpreted as the header resulting into an empty diff body. solution: Use a more clever text-matching tool ``re`` with the pattern ``^@@.*@@$`` which correspond to a hunk header --- the first hunk corresponds to the end of the diff header.
1 parent c265070
Tip revision: 1077af07133290b7c141c01d1207b98e19bedd05 authored by Alain Leufroy on 14 March 2013, 12:58:38 UTC
[lib] file diff: fix missing diff (closes #122649)
[lib] file diff: fix missing diff (closes #122649)
Tip revision: 1077af0
File | Mode | Size |
---|---|---|
curses | ||
hgpatches | ||
qt4 | ||
__init__.py | -rw-r--r-- | 1.1 KB |
__pkginfo__.py | -rw-r--r-- | 2.1 KB |
application.py | -rw-r--r-- | 7.1 KB |
config.py | -rw-r--r-- | 12.0 KB |
decorators.py | -rw-r--r-- | 514 bytes |
hggraph.py | -rw-r--r-- | 26.6 KB |
hgviewhelp.py | -rw-r--r-- | 7.6 KB |
inotify.py | -rw-r--r-- | 4.5 KB |
util.py | -rw-r--r-- | 5.9 KB |
Computing file changes ...