Home | Trees | Index | Help |
---|
Package pybaz :: Class Changeset |
|
object
--+ |basestring
--+ |str
--+ |PathName
--+ |DirName
--+ | Changeset
Arch whole-tree changeset.
Method Summary | |
---|---|
__init__(self,
name)
| |
Apply this changeset to a tree. | |
created_file(self,
name)
| |
Load and parse an index file from the changeset. | |
Apply this changeset to a tree, with incremental output. | |
Iterator over tuples (id, dest) for created directories. | |
Iterator over tuples (id, dest) for created files. | |
Iterator over (id, orig, mod) tuples for files which are are patched, renamed, or have their permissions changed. | |
Iterate over (id, orig, mod) of patched files. | |
Iterator over tuples (id, orig) for removed directories. | |
Iterator over tuples (id, orig) for removed files. | |
Iterate over (id, orig, dest) triples representing renames. | |
patch_file(self,
modname)
| |
removed_file(self,
name)
| |
Inherited from PathName | |
| |
(Static method) | |
| |
| |
| |
| |
| |
| |
Inherited from str | |
x.__add__(y) <==> x+y... | |
x.__contains__(y) <==> y in x... | |
x.__eq__(y) <==> x==y... | |
x.__ge__(y) <==> x>=y... | |
x.__getattribute__('name') <==> x.name... | |
x.__getitem__(y) <==> x[y]... | |
| |
Use of negative indices is not supported. | |
x.__gt__(y) <==> x>y... | |
x.__hash__() <==> hash(x)... | |
x.__le__(y) <==> x<=y... | |
x.__len__() <==> len(x)... | |
x.__lt__(y) <==> x<y... | |
x.__mod__(y) <==> x%y... | |
x.__mul__(n) <==> x*n... | |
x.__ne__(y) <==> x!=y... | |
x.__rmod__(y) <==> y%x... | |
x.__rmul__(n) <==> n*x... | |
x.__str__() <==> str(x)... | |
Return a copy of the string S with only its first character capitalized. | |
Return S centered in a string of length width. | |
Return the number of occurrences of substring sub in string S[start:end]. | |
Decodes S using the codec registered for encoding. | |
Encodes S using the codec registered for encoding. | |
Return True if S ends with the specified suffix, False otherwise. | |
Return a copy of S where all tab characters are expanded using spaces. | |
Return the lowest index in S where substring sub is found, such that sub is contained within s[start,end]. | |
Like S.find() but raise ValueError when the substring is not found. | |
Return True if all characters in S are alphanumeric and there is at least one character in S, False otherwise. | |
Return True if all characters in S are alphabetic and there is at least one character in S, False otherwise. | |
Return True if all characters in S are digits and there is at least one character in S, False otherwise. | |
Return True if all cased characters in S are lowercase and there is at least one cased character in S, False otherwise. | |
Return True if all characters in S are whitespace and there is at least one character in S, False otherwise. | |
Return True if S is a titlecased string and there is at least one character in S, i.e. | |
Return True if all cased characters in S are uppercase and there is at least one cased character in S, False otherwise. | |
Return a string which is the concatenation of the strings in the sequence. | |
Return S left justified in a string of length width. | |
Return a copy of the string S converted to lowercase. | |
Return a copy of the string S with leading whitespace removed. | |
S.replace (old, new[, count]) -> string Return a copy of string S with all occurrences of substring old replaced by new. | |
Return the highest index in S where substring sub is found, such that sub is contained within s[start,end]. | |
Like S.rfind() but raise ValueError when the substring is not found. | |
Return S right justified in a string of length width. | |
Return a list of the words in the string S, using sep as the delimiter string, starting at the end of the string and working to the front. | |
Return a copy of the string S with trailing whitespace removed. | |
Return a list of the words in the string S, using sep as the delimiter string. | |
Return a list of the lines in S, breaking at line boundaries. | |
Return True if S starts with the specified prefix, False otherwise. | |
Return a copy of the string S with leading and trailing whitespace removed. | |
Return a copy of the string S with uppercase characters converted to lowercase and vice versa. | |
Return a titlecased version of S, i.e. | |
Return a copy of the string S, where all characters occurring in the optional argument deletechars are removed, and the remaining characters have been mapped through the given translation table, which must be a string of length 256. | |
Return a copy of the string S converted to uppercase. | |
Pad a numeric string S with zeros on the left, to fill a field of the specified width. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
helper for pickle... | |
helper for pickle... | |
x.__setattr__('name', value) <==> x.name = value... |
Property Summary | |
---|---|
does_nothing |
Instance Method Details |
---|
apply(self, tree, reverse=False)Apply this changeset to a tree. Raise on conflict. :param tree: the tree to apply changes to. :type tree: `WorkingTree` :param reverse: invert the meaning of the changeset; adds become deletes, etc. :type reverse: bool :raise errors.ChangesetConflict: a conflict occured while applying the changeset. |
get_index(self, name, all=False)Load and parse an index file from the changeset. Expectable indexes are: mod-dirs mod-files orig-dirs orig-files (more?) |
iter_apply(self, tree, reverse=False)Apply this changeset to a tree, with incremental output. :param tree: the tree to apply changes to. :type tree: `WorkingTree` :param reverse: invert the meaning of the changeset; adds become deletes, etc. :type reverse: bool :rtype: `ChangesetApplication` |
iter_created_dirs(self, all=False)Iterator over tuples (id, dest) for created directories. :param all: include Arch control files. :type all: bool |
iter_created_files(self, all=False)Iterator over tuples (id, dest) for created files. :param all: include Arch control files. :type all: bool |
iter_mod_files(self, all=False)Iterator over (id, orig, mod) tuples for files which are are patched, renamed, or have their permissions changed. |
iter_patched_files(self, all=False)Iterate over (id, orig, mod) of patched files. |
iter_removed_dirs(self, all=False)Iterator over tuples (id, orig) for removed directories. :param all: include Arch control files. :type all: bool |
iter_removed_files(self, all=False)Iterator over tuples (id, orig) for removed files. :param all: include Arch control files. :type all: bool |
iter_renames(self)Iterate over (id, orig, dest) triples representing renames. id is the persistant file tag, and the key of the dictionnary. orig is the name in the original tree. dest is the name in the modified tree. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Feb 2 14:21:53 2006 | http://epydoc.sf.net |