def showjenkins(ui, repo): """Jenkins build status""" revs = repo.revs('sort(_underway(), topo)') revdag = graphmod.dagwalker(repo, revs) ui.setconfig(b'experimental', b'graphshorten', True) spec = formatter.lookuptemplate(ui, None, tmpl) displayer = changesettemplater(ui, repo, spec, buffered=True) displaygraph(ui, repo, revdag, displayer, graphmod.asciiedges)
def showwork(ui, repo, displayer): """changesets that aren't finished""" # TODO support date-based limiting when calling revset. revs = repo.revs('sort(_underway(), topo)') nodelen = longestshortest(repo, revs) revdag = graphmod.dagwalker(repo, revs) ui.setconfig('experimental', 'graphshorten', True) logcmdutil.displaygraph(ui, repo, revdag, displayer, graphmod.asciiedges, props={'nodelen': nodelen})