# eric7.Plugins.VcsPlugins.vcsPySvn.SvnDiffDialog

Module implementing a dialog to show the output of the svn diff command process.

### Global Attributes

None

### Classes

SvnDiffDialog | Class implementing a dialog to show the output of the svn diff command.

### Functions

None

## SvnDiffDialog

Class implementing a dialog to show the output of the svn diff command.

### Derived from

QWidget, SvnDialogMixin, Ui_SvnDiffDialog

### Class Attributes

None

### Class Methods

None

### Methods

SvnDiffDialog | Constructor
__appendText | Private method to append text to the end of the contents pane.
__extractFileName | Private method to extract the file name out of a file separator line.
__finish | Private slot called when the user pressed the button.
__getDiffSummaryKind | Private method to get a string descripion of the diff summary.
__getVersionArg | Private method to get a pysvn revision object for the given version number.
__processFileLine | Private slot to process a line giving the old/new file.
__showError | Private slot to show an error message.
on_buttonBox_clicked | Private slot called by a button of the button box clicked.
on_filesCombo_activated | Private slot to handle the selection of a file.
on_refreshButton_clicked | Private slot to refresh the display.
on_saveButton_clicked | Private slot to handle the Save button press.
start | Public slot to start the svn diff command.

### Static Methods

None

#### SvnDiffDialog (Constructor)

SvnDiffDialog(vcs, parent=None)

Constructor

vcs (Subversion)
  reference to the vcs object
parent (QWidget)
  parent widget

#### SvnDiffDialog.__appendText

__appendText(line)

Private method to append text to the end of the contents pane.

line (str)
  line of text to insert

#### SvnDiffDialog.__extractFileName

__extractFileName(line)

Private method to extract the file name out of a file separator line.

line (str)
  line to be processed

Return:
  extracted file name

Return Type:
  str

#### SvnDiffDialog.__finish

__finish()

Private slot called when the user pressed the button.

#### SvnDiffDialog.__getDiffSummaryKind

__getDiffSummaryKind(summaryKind)

Private method to get a string descripion of the diff summary.

summaryKind (pysvn.diff_summarize.summarize_kind)

Return:
  one letter string indicating the change type

Return Type:
  str

#### SvnDiffDialog.__getVersionArg

__getVersionArg(version)

Private method to get a pysvn revision object for the given version number.

version (int or str)
  revision

Return:
  revision object

Return Type:
  pysvn.Revision

#### SvnDiffDialog.__processFileLine

__processFileLine(line)

Private slot to process a line giving the old/new file.

line (str)
  line to be processed

#### SvnDiffDialog.__showError

__showError(msg)

Private slot to show an error message.

msg (str)
  error message to show

#### SvnDiffDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button (QAbstractButton)
  button that was clicked

#### SvnDiffDialog.on_filesCombo_activated

on_filesCombo_activated(index)

Private slot to handle the selection of a file.

index (int)
  activated row

#### SvnDiffDialog.on_refreshButton_clicked

on_refreshButton_clicked()

Private slot to refresh the display.

#### SvnDiffDialog.on_saveButton_clicked

on_saveButton_clicked()

Private slot to handle the Save button press.

It saves the diff shown in the dialog to a file in the local filesystem.

#### SvnDiffDialog.start

start(fn, versions=None, urls=None, summary=False, pegRev=None, refreshable=False, )

Public slot to start the svn diff command.

fn (str)
  filename to be diffed
versions (list of up to 2 int or None)
  list of versions to be diffed
urls (list of [str, str])
  list of repository URLs
summary (bool)
  flag indicating a summarizing diff (only valid for URL diffs)
pegRev (int)
  revision number the filename is valid
refreshable (bool)
  flag indicating a refreshable diff

Up