Opened 5 years ago
Last modified 17 months ago
#6858 new enhancement
Improve intra-line diff highlighting
| Reported by: | cboos | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | next-major-releases |
| Component: | version control/changeset view | Version: | |
| Severity: | minor | Keywords: | diff |
| Cc: | a.a.vykhodtsev@…, franz.mayer@… | ||
| Release Notes: | |||
| API Changes: | |||
Description
Looking at this one: http://trac.edgewall.org/wiki/TracInstall?action=diff&version=231
-
TracInstall
43 43 * [http://www.postgresql.org/ PostgreSQL] 44 44 * [http://initd.org/projects/psycopg2 psycopg2] or [http://pypgsql.sourceforge.net/ pyPgSQL] 45 45 46 '''Warning''': Postgre sql-8.3 uses a strict type checking mechanism. To use trac with the 8.3 Version of Postgresql, you will need the latest version of trac.46 '''Warning''': PostgreSQL 8.3 uses a strict type checking mechanism. To use Trac with the 8.3 Version of PostgreSQL, you will need the latest version of Trac. 47 47 48 48 === For MySQL === 49 49
I think we should be able to do much better, something like:
-
TracInstall
old new 43 43 * [http://www.postgresql.org/ PostgreSQL] 44 44 * [http://initd.org/projects/psycopg2 psycopg2] or [http://pypgsql.sourceforge.net/ pyPgSQL] 45 45 46 '''Warning''': Postgre sql-8.3 uses a strict type checking mechanism. To usetrac with the 8.3 Version of Postgresql, you will need the latest version oftrac.46 '''Warning''': PostgreSQL 8.3 uses a strict type checking mechanism. To use Trac with the 8.3 Version of PostgreSQL, you will need the latest version of Trac. 47 47 48 48 === For MySQL === 49 49
That would be especially useful for Wiki text diffs, where it's common to have one line for a full paragraph, but the clarity of code diffs would probably benefit of this enhancement as well.
A somewhat related enhancement would be to have an heuristic for triggering the intra-line diff highlighting also when the base and new block length differ, as it's common to have common lines changed together with lines added/removed, in the same chunk.
Attachments (1)
Change History (8)
comment:1 Changed 5 years ago by a.a.vykhodtsev@…
- Cc a.a.vykhodtsev@… added
comment:2 Changed 5 years ago by mark.freund@…
- Cc mark.freund@… added
comment:3 Changed 3 years ago by cboos
- Milestone changed from 1.0 to unscheduled
comment:4 Changed 3 years ago by cboos
- Milestone changed from triaging to next-major-0.1X
comment:5 Changed 3 years ago by mark.freund@…
- Cc mark.freund@… removed
comment:6 Changed 17 months ago by framay <franz.mayer@…>
- Cc franz.mayer@… added
+1 on this ticket. That would be useful for our installation as well, since we change description and custom textarea fields in ticket quite often.
comment:7 Changed 17 months ago by psuter
I still got a patch for this somewhere. I'm not sure how much of a performance impact (if any) there is though. Maybe the old approach should be kept as an option somehow?



Milestone 1.0 deleted