need save changes as patch or unified diff

Bug #565898 reported by Alexandr Litjagin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Confirmed
Medium
Unassigned
TortoiseBZR
New
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.

Tags: qdiff qlog
Revision history for this message
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
Revision history for this message
Alexandr Litjagin (alexraynepe196) wrote :

>>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.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 565898] Re: need save changes as patch or unified diff

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

Revision history for this message
Alexandr Litjagin (alexraynepe196) wrote :

>> 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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.