ShuffleBox / django-rcsfield

Automatically exported from code.google.com/p/django-rcsfield
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

get_content_revisions does not include the initial revision #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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]

Original issue reported on code.google.com by jbow...@gmail.com on 15 Oct 2008 at 11:39

GoogleCodeExporter commented 9 years ago
I'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?

Original comment by a...@rcs4u.de on 16 Oct 2008 at 4:01

GoogleCodeExporter commented 9 years ago
invalid, 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.

Original comment by a...@rcs4u.de on 12 Mar 2009 at 1:02