fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Poprawki do file upload i toolbar.
[redakcja.git]
/
lib
/
hg.py
diff --git
a/lib/hg.py
b/lib/hg.py
index
9e08e51
..
b94b0d6
100644
(file)
--- a/
lib/hg.py
+++ b/
lib/hg.py
@@
-7,8
+7,7
@@
import mercurial.merge, mercurial.error
encoding.encoding = 'utf-8'
encoding.encoding = 'utf-8'
-class RepositoryDoesNotExist(Exception):
- pass
+
class Repository(object):
"""Abstrakcja repozytorium Mercurial. Działa z Mercurial w wersji 1.3.1."""
class Repository(object):
"""Abstrakcja repozytorium Mercurial. Działa z Mercurial w wersji 1.3.1."""
@@
-100,7
+99,7
@@
class Repository(object):
except KeyError, ke:
raise RepositoryException("Can't switch to branch '%s': no such branch." % bname , ke)
except util.Abort, ae:
except KeyError, ke:
raise RepositoryException("Can't switch to branch '%s': no such branch." % bname , ke)
except util.Abort, ae:
- raise
r
epositoryException("Can't switch to branch '%s': %s" % (bname, ae.message), ae)
+ raise
R
epositoryException("Can't switch to branch '%s': %s" % (bname, ae.message), ae)
finally:
wlock.release()
finally:
wlock.release()
@@
-114,3
+113,6
@@
class RepositoryException(Exception):
def __init__(self, msg, cause=None):
Exception.__init__(self, msg)
self.cause = cause
def __init__(self, msg, cause=None):
Exception.__init__(self, msg)
self.cause = cause
+
+class RepositoryDoesNotExist(RepositoryException):
+ pass