fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into view-refactor
[redakcja.git]
/
lib
/
wlrepo
/
mercurial_backend
/
document.py
diff --git
a/lib/wlrepo/mercurial_backend/document.py
b/lib/wlrepo/mercurial_backend/document.py
index
6cf8a5b
..
523e330
100644
(file)
--- a/
lib/wlrepo/mercurial_backend/document.py
+++ b/
lib/wlrepo/mercurial_backend/document.py
@@
-32,7
+32,7
@@
class MercurialDocument(wlrepo.Document):
f.close()
l._fileadd(r(entry))
f.close()
l._fileadd(r(entry))
- return self.invoke_and_commit(write, lambda d: (msg,
us
er))
+ return self.invoke_and_commit(write, lambda d: (msg,
self.own
er))
def invoke_and_commit(self, ops,
before_commit, rollback=False):
def invoke_and_commit(self, ops,
before_commit, rollback=False):
@@
-50,7
+50,7
@@
class MercurialDocument(wlrepo.Document):
return self._library.document(docid=self.id, user=user)
except Exception, e:
# rollback the last commit
return self._library.document(docid=self.id, user=user)
except Exception, e:
# rollback the last commit
- self._library.rollback()
+ self._library.
_
rollback()
raise e
finally:
lock.release()
raise e
finally:
lock.release()