fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix revisions and diff
[redakcja.git]
/
apps
/
dvcs
/
models.py
diff --git
a/apps/dvcs/models.py
b/apps/dvcs/models.py
index
ab5f77d
..
0ba8fe5
100644
(file)
--- a/
apps/dvcs/models.py
+++ b/
apps/dvcs/models.py
@@
-125,7
+125,7
@@
class Change(models.Model):
if self.revision is None:
tree_rev = self.tree.revision()
if tree_rev is None:
if self.revision is None:
tree_rev = self.tree.revision()
if tree_rev is None:
- self.revision =
0
+ self.revision =
1
else:
self.revision = tree_rev + 1
return super(Change, self).save(*args, **kwargs)
else:
self.revision = tree_rev + 1
return super(Change, self).save(*args, **kwargs)