Edgewall Software

Ticket #1662 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

see/download a diff of individual files within a changeset

Reported by: xris Owned by: cboos
Priority: normal Milestone: 0.10
Component: version control/changeset view Version: devel
Severity: normal Keywords: tracdiff
Cc:

Description

Sometimes you just want to apply part of a changeset to your local branch (like if there's a conflict). It'd be really nice to be able to have that diff available in trac, rather than have to sort through the whole changeset.

Attachments

Change History

Changed 3 years ago by cboos

  • owner changed from jonas to cboos
  • status changed from new to assigned

With the current status of TracDiff, it's already possible to view a restricted changeset, i.e. a subset of a changeset containing the changes below a given path.

Would that be enough?

OTOH, I had the idea of adding a possibility to filter out changes from a given diff view (be it a changeset or a more general diff), by the way of an Exclude checkbox on each diff, but then I was not sure if it was really worth it...

Thoughts?

Changed 3 years ago by xris

Well, it'd be nice to at least have a link next to each file in the list at the top of the page going to TracDiff that would show only those changes...

Changed 3 years ago by anonymous

Another think that would be nice is to see a history of a single file, ie show incremental differences between successive revisions of a file.

It would look just like the current multi-file changeset diff, but instead of showing the differences in all files between changeset n and changeset n-1, it would diff a single file between muliple changesets.

I'll discuss this more on the mailing list and depending on the outcome of this may expand further.

Changed 3 years ago by mgood

I believe that the previous comment is actually asking for blame support as in #629.

Changed 3 years ago by cboos

  • keywords tracdiff added

Changed 3 years ago by cboos

  • status changed from assigned to closed
  • resolution set to fixed
  • milestone set to 0.10

That's now possible using the restricted changeset view: from the TracBrowser, simply click on the Last Change navigation link, and you go to a changeset page showing only the changes for the current path.

From there, the diff format link will produce the diff that you're looking for.

Add/Change #1662 (see/download a diff of individual files within a changeset)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.