---
name: "SVK::Editor::XD"
section: "3pm"
platform: "linux"
package: "svk"
version: "2.0.2-3"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/SVK::Editor::XD"
---

# SVK::Editor::XD(3pm)

An editor for modifying svk checkout copies

## NAME

SVK::Editor::XD - An editor for modifying svk checkout copies

## SYNOPSIS

`$editor` = SVK::Editor::XD-\>new\
     ( path =\> `$path`,\
       target =\> `$target`,\
       oldroot =\> `$fs`-\>revision\_root ($fromrev),\
       newroot =\> `$fs`-\>revision\_root ($torev),\
       xd =\> `$xd`,\
       get\_copath =\> sub { ... },\
       get\_path =\> sub { ... },\
     );

## DESCRIPTION

SVK::Editor::XD modifies existing checkout copies at the paths translated by the get\_copath callback, according to the incoming editor calls.  The path in the depot is translated with the get\_path callback.

There are two modes, one is for applying changes to checkout copy as external modification, like merging changes. The other is update mode, which is used for bringing changes from depot to checkout copies.

## PARAMETERS

In addition to the paramters to SVK::Editor::Checkout:

- target

  The target path of the editor calls.  Used for deciding if the root's meta data needs to be updated in update mode.

- xd

  XD object.

- oldroot

  Old root before the editor calls.

- newroot

  New root after the editor calls.

- update

  Working in update mode.

- get\_path

  A callback to translate paths in editor calls to path in depot.

- ignore\_keywords

  Don't do keyword translations.
