Home | Trees | Index | Help |
---|
Package pybaz :: Class WorkingTree |
|
object
--+ |basestring
--+ |str
--+ |PathName
--+ |DirName
--+ |SourceTree
--+ |ArchSourceTree
--+ | WorkingTree
Working source tree, Arch source tree which can be modified.
Method Summary | |
---|---|
Create WorkingTree object with the given root path. | |
Add a patch log version to the project tree. | |
Ensure that the project tree has a particular pristine revision. | |
add_tag(self,
file)
| |
Changeset |
Uncommited changes in this tree. |
Archive a changeset-based revision. | |
del_file(self,
file)
| |
del_tag(self,
file)
| |
delete(self,
file)
| |
Path to a pristine tree for the given revision. | |
bool |
Are there uncommited changes is this source tree? |
Archive a full-source base-0 revision. | |
iterator of |
Archive a changeset-based revision, returning an iterator. |
iterable of |
Pristines present in that source tree. |
Merge mutually merged branches. | |
str |
Standard arch log of newly merged patches. |
Default log-message object used by import and commit. | |
move_file(self,
src,
dest)
| |
move_tag(self,
src,
dest)
| |
Redo changes in a project tree. | |
Remove a patch log version from the project tree. | |
Replay changesets into this working tree. | |
resolved(self,
all)
| |
set_tagging_method(self,
method)
| |
set_tree_version(self,
version)
| |
Merge mutually merged branches. | |
Adds the patchlogs in the given revision to the current tree. | |
|
Undo and save changes in a project tree. |
Apply delta of new revisions in the archive. | |
Inherited from ArchSourceTree | |
| |
Find a pristine copy of a file for a given revision. | |
str |
Read a file id set by an explicit id tag or tagline. |
| |
| |
Default version of the tree, also called tree-version. | |
Deprecated. | |
iterable of |
Tree inventory. |
iterable of tuples (id, item), where item is
|
Tree inventory with file ids. |
Iterate over versions this tree has a log-version for. | |
iterator of |
Iterate over patchlogs present in this tree. |
Inherited from SourceTree | |
Create a source tree object for the given root path. (Static method) | |
Inherited from PathName | |
| |
| |
| |
| |
| |
| |
| |
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 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 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 | |
---|---|
tagging_method | |
tree_version | |
Inherited from ArchSourceTree | |
tree_revision |
Instance Method Details |
---|
__init__(self,
root)
|
add_log_version(self, version)Add a patch log version to the project tree. |
add_pristine(self, revision)Ensure that the project tree has a particular pristine revision.
|
changes(self, revision=None, output=None)Uncommited changes in this tree.
|
commit(self, log=None, strict=False, seal=False, fix=False, out_of_date_ok=False, file_list=None, version=None, just_commit=False)Archive a changeset-based revision. The --summary and --log-message options to tla are mere CLI convenience features and are not directly supported.
|
find_pristine(self, revision)Path to a pristine tree for the given revision.
|
has_changes(self)Are there uncommited changes is this source tree?
|
import_(self, log=None)Archive a full-source base-0 revision. If log is specified, it must be a LogMessage object or a file name as a string. If omitted, the default log message file of the tree is used. The --summary, --log-message and --setup options to tla are mere CLI convenience features and are not directly supported. |
iter_commit(self, log=None, strict=False, seal=False, fix=False, out_of_date_ok=False, file_list=None, version=None, just_commit=False, stderr_too=False)Archive a changeset-based revision, returning an iterator. PyArchSpawningStrategy. Using it will cause a ArgumentError with the TwistedSpawningStrategy. That will be fixed when the process handling subsystem is replaced by Gnarly. The --summary and --log-message options to tla are mere CLI convenience features and are not directly supported.
|
iter_pristines(self)Pristines present in that source tree.
|
iter_star_merge(self, from_=None, reference=None, forward=False, diff3=False)Merge mutually merged branches.
|
log_for_merge(self)Standard arch log of newly merged patches.
|
log_message(self, create=True)Default log-message object used by import and commit. If |
redo(self, patch=None, keep=False, quiet=False)Redo changes in a project tree. Apply patch to the project tree and delete patch. If patch is provided, it must be a Changeset object. Else, the highest numbered ,,undo-N directory in the project tree root is used. If keep is true, the patch directory is not deleted. |
remove_log_version(self, version)Remove a patch log version from the project tree. |
replay(self)Replay changesets into this working tree. |
star_merge(self, from_=None, reference=None, forward=False, diff3=False)Merge mutually merged branches.
|
sync_tree(self, revision)Adds the patchlogs in the given revision to the current tree. Create a temporary source tree for revision, then add all the patchlogs present in that tree to the current tree. No content is touched besides the patchlogs. |
undo(self, revision=None, output=None, quiet=False, throw_away=False)Undo and save changes in a project tree. Remove local changes since revision and optionally save them as a changeset.
|
update(self)Apply delta of new revisions in the archive. Apply delta(A,B) on this working tree, where A and B are both revisions of the tree version, A is the latest whose patchlog is present in the tree and B is the latest present in the archive. |
Property Details |
---|
tagging_method
|
tree_version
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Fri Jul 7 17:05:32 2006 | http://epydoc.sf.net |