This file is indexed.

/usr/lib/python2.7/dist-packages/cvs2svn_lib/bzr_output_option.py is in cvs2svn 2.4.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# (Be in -*- python -*- mode.)
#
# ====================================================================
# Copyright (c) 2009 CollabNet.  All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.  The terms
# are also available at http://subversion.tigris.org/license-1.html.
# If newer versions of this license are posted there, you may use a
# newer version instead, at your option.
#
# This software consists of voluntary contributions made by many
# individuals.  For exact contribution history, see the revision
# history and logs, available at http://cvs2svn.tigris.org/.
# ====================================================================

"""Classes for outputting the converted repository to bzr.

Relies heavily on the support for outputting to git, with a few tweaks to make
the dialect of the fast-import file more suited to bzr.

"""

from cvs2svn_lib.git_output_option import GitOutputOption
from cvs2svn_lib.symbol import Trunk


class BzrOutputOption(GitOutputOption):
  """An OutputOption that outputs to a git-fast-import formatted file, in a
  dialect more suited to bzr.
  """

  name = "Bzr"

  def __init__(
        self, dump_filename, revision_writer,
        author_transforms=None,
        tie_tag_fixup_branches=True,
        ):
    """Constructor.

    See superclass for meaning of parameters.
    """
    GitOutputOption.__init__(self, dump_filename, revision_writer,
        author_transforms, tie_tag_fixup_branches)

  def get_tag_fixup_branch_name(self, svn_commit):
    # Use a name containing '.', which is not allowed in CVS symbols, to avoid
    # conflicts (though of course a conflict could still result if the user
    # requests symbol transformations).
    return 'refs/heads/tag-fixup.%s' % svn_commit.symbol.name

  def describe_lod_to_user(self, lod):
    """This needs to make sense to users of the fastimported result."""
    # This sort of needs to replicate the entire branch name mapping logic from
    # bzr-fastimport :-/
    if isinstance(lod, Trunk):
      return 'trunk'
    else:
      return lod.name