Mercurial > treepkg
changeset 260:6aeae11ca7fe
Add tag parameter to RevisionPackager constructor. The tag is stored in
the status file
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Fri, 24 Apr 2009 18:04:40 +0000 |
parents | 27824d3add92 |
children | e574b03a2957 |
files | treepkg/packager.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/packager.py Fri Apr 24 17:55:29 2009 +0000 +++ b/treepkg/packager.py Fri Apr 24 18:04:40 2009 +0000 @@ -230,7 +230,7 @@ source_packager_cls = SourcePackager binary_packager_cls = BinaryPackager - def __init__(self, track, revision, rules_revision): + def __init__(self, track, revision, rules_revision, tag=""): self.track = track self.revision = revision self.rules_revision = rules_revision @@ -238,6 +238,9 @@ rules_revision) self.status = status.RevisionStatus(os.path.join(self.base_dir, "status")) + if tag: + util.ensure_directory(self.base_dir) + self.status.tags = tag log_dir = util.filenameproperty("log") work_dir = util.filenameproperty("work")