Login | Register
My pages Projects Community openCollabNet

Welcome to the new Tigris! There have been some changes to the administration of mail lists. Project and list owners should check out the Discussion Services release notes.

Package commitmessage :: Module model :: Class File
[show private | hide private]
[frames | no frames]

Class File


Represents a file that has been affected by the commit
Method Summary
  __init__(self, name, directory, action)
  __str__(self)
Return the path of the file

Property Summary
  action: The action on thie file that required a commit, SCM-dependent
  delta: The number of lines added/removed/changed in this commit
  diff: The diff of what changed in the file
  directory: The Directory the file is in
  name: The file name (foo.txt)
  path: The full path (/dir/foo.txt) of the file
  rev: The revision number (SCM-dependent, could be per-file or per-commit) for this file

Method Details

__init__(self, name, directory, action)
(Constructor)

Parameters:
name - the file name, e.g. foo.txt
directory - the parent directory, the file will automatically add itself to this directory
action - the action performed on this file that required a commit, SCM-dependent

__str__(self)
(Informal representation operator)

Returns:
the path of the file

Property Details

action

The action on thie file that required a commit, SCM-dependent
Get Method:
unknown-12342768(...)

delta

The number of lines added/removed/changed in this commit
Get Method:
unknown-12343024(...)
Set Method:
unknown-12343088(...)
Delete Method:
unknown-12343152(...)

diff

The diff of what changed in the file
Get Method:
unknown-12343216(...)
Set Method:
unknown-12343280(...)
Delete Method:
unknown-12343344(...)

directory

The Directory the file is in
Get Method:
unknown-12342704(...)

name

The file name (foo.txt)
Get Method:
unknown-12342640(...)

path

The full path (/dir/foo.txt) of the file
Get Method:
fget(...)

rev

The revision number (SCM-dependent, could be per-file or per-commit) for this file
Get Method:
unknown-12342832(...)
Set Method:
unknown-12342896(...)
Delete Method:
unknown-12342960(...)

Generated by Epydoc 2.1 on Thu Jan 06 10:30:34 2005 http://epydoc.sf.net