
django-rcsfield - issue #7
get_content_revisions does not include the initial revision
This is visible in the API example on the wiki. This means you cannot retrieve the first revision of an object.
>>> Entry.objects.rev(1).get(pk=1).text '' >>> Entry.objects.rev(2).get(pk=1).text 'test test test' >>> e = Entry.objects.get(pk=1) >>> f = Entry.objects.get(pk=2) >>> e.get_content_revisions() [8, 7, 6, 4, 2] #should return [8, 7, 6, 4, 2, 1]
Comment #1
Posted on Oct 16, 2008 by Happy PandaI'm not shure if this is true. The first revision (revision = 1) is always the revision at which the initial repository/working copy is created, there are no objects available at this revision so it is not returned. Or did I misunderstood you?
Comment #2
Posted on Mar 12, 2009 by Happy Pandainvalid, I double checked it and wrote tests. revision 1 is the revison at which the repo is initialised (empty), no API will return this revision.
Status: Invalid
Labels:
Type-Defect
Priority-Medium