@@ -5,13 +5,13 @@ formencode==1.2.4
SQLAlchemy==0.7.6
Mako==0.7.0
pygments>=1.4
whoosh>=2.3.0,<2.4
celery>=2.2.5,<2.3
babel
python-dateutil>=1.5.0,<2.0.0
dulwich>=0.8.5,<0.9.0
webob==1.0.8
markdown==2.1.1
docutils==0.8.1
py-bcrypt
mercurial>=2.1,<2.2
\ No newline at end of file
mercurial>=2.2,<2.3
@@ -60,28 +60,28 @@ requirements = [
"python-dateutil>=1.5.0,<2.0.0",
"dulwich>=0.8.5,<0.9.0",
"webob==1.0.8",
"markdown==2.1.1",
"docutils==0.8.1",
]
if __py_version__ < (2, 6):
requirements.append("simplejson")
requirements.append("pysqlite")
if __platform__ in PLATFORM_WIN:
requirements.append("mercurial>=2.1,<2.2")
requirements.append("mercurial>=2.2,<2.3")
else:
requirements.append("py-bcrypt")
def get_version():
"""Returns shorter version (digit parts only) as string."""
return '.'.join((str(each) for each in VERSION[:3]))
BACKENDS = {
'hg': 'Mercurial repository',
'git': 'Git repository',
}
@@ -116,19 +116,20 @@ class ChangelogController(BaseRepoContro
return
data = []
revs = [x.revision for x in collection]
if repo.alias == 'git':
for _ in revs:
vtx = [0, 1]
edges = [[0, 0, 1]]
data.append(['', vtx, edges])
elif repo.alias == 'hg':
c.dag = graphmod.colored(graphmod.dagwalker(repo._repo, revs))
dag = graphmod.dagwalker(repo._repo, revs)
c.dag = graphmod.colored(dag, repo._repo)
for (id, type, ctx, vtx, edges) in c.dag:
if type != graphmod.CHANGESET:
continue
c.jsdata = json.dumps(data)
Status change: