need save changes as patch or unified diff

Bug #565898 reported by Alexandr Litjagin on 2010-04-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Medium
Unassigned
TortoiseBZR
Undecided
Unassigned

Bug Description

in tbzr invoke an "changes log" menu (i`m use russian locale so i can miss right menu item name). here shows log.
context menu of revision allow to invoke an diff viever, but i have no ability to save changes in aside file as unified diff or patch to export it to other peoples that not use bzr.
therefore need an "view as unified diff" or "view as patch" context menu item on revision, that invokes default editor\viewer with changeset contencts. from this editor i can save one changeset where i prefere. such behaviour implemented in tortoisesvn.

Alexander Belchenko (bialix) wrote :

You can copy the unidiff from that window and paste it to your editor.

Changed in qbzr:
status: New → Confirmed
importance: Undecided → Medium
tags: added: qdiff qlog

>>You can copy the unidiff from that window and paste it to your editor.
from what window?
i can see changes at present only by diff viewers, they got two revisions, no any diff showed anywhere.

this issue can be extended - in Log form need some frame that shows revision diff for selected file
(at present showed only affected files), like tortiose HG have.

Alexandr Litjagin пишет:
>>> You can copy the unidiff from that window and paste it to your editor.
> from what window?

In the diff window. There is radiobutton at the bottom of the window to
switch between side-by-side view and unidiff view.

> i can see changes at present only by diff viewers, they got two revisions, no any diff showed anywhere.

Я не понимаю.

>
> this issue can be extended - in Log form need some frame that shows revision diff for selected file
> (at present showed only affected files), like tortiose HG have.
>

--

All the dude wanted was his rug back

>> from what window?

ok, i see. internal viewer can show unified diff.

>> i can see changes at present only by diff viewers, they got two revisions, no any diff showed anywhere.

>Я не понимаю.
внешние виверы получают для сравнения различные версии файла целиком а не дельту, и я незнаю вивера который бы мог сохранять дельту сравниваемых файлов, я пользовал unidiff и kdiff3

>>> You can copy the unidiff from that window and paste it to your editor.
it cant be copy, because windows clipboard cant preserve valid lineendings, therefore all lined of diff will past with windows CRLF,
but unified diff require that some internal format lines will be with unix LF lineends.
forexample:

--- stdio.h 2010-02-23 21:19:28 +0000
+++ stdio.h 2010-02-23 21:20:19 +0000
@@ -384,6 +384,19 @@
  */
 #define FDEV_SETUP_STREAM(put, get, rwflag)
 #else /* !DOXYGEN */
....

try to see what lineends in 1st 3 lines

Alexander Belchenko (bialix) wrote :

You can setup external diff program of your choice via qconfig.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers