Example #1
0
    def __collect(self, timestamp, author, changelog, entry, revision):
        """Register a change set about an entry."""

        from vcpx.changes import Changeset

        key = (timestamp, author, changelog)
        if self.changesets.has_key(key):
            cs = self.changesets[key]
            for e in cs.entries:
                if e.name == entry:
                    return e
            return cs.addEntry(entry, revision)
        else:
            cs = Changeset(_getGlobalCVSRevision(timestamp, author), timestamp,
                           author, changelog)
            self.changesets[key] = cs
            return cs.addEntry(entry, revision)
Example #2
0
    def __collect(self, timestamp, author, changelog, entry, revision):
        """Register a change set about an entry."""

        from vcpx.changes import Changeset

        key = (timestamp, author, changelog)
        if self.changesets.has_key(key):
            cs = self.changesets[key]
            for e in cs.entries:
                if e.name == entry:
                    return e
            return cs.addEntry(entry, revision)
        else:
            cs = Changeset(_getGlobalCVSRevision(timestamp, author),
                           timestamp, author, changelog)
            self.changesets[key] = cs
            return cs.addEntry(entry, revision)