Mercurial > hg > hgforest
changeset 7:118793cfcca3
end per-tree output with an empty line
author | Robin Farine <robin.farine@terminus.org> |
---|---|
date | Mon, 23 Oct 2006 13:46:04 +0200 |
parents | a41d82517c45 |
children | 801dc644d715 |
files | forest.py |
diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/forest.py Sun Jul 23 14:42:52 2006 +0200 +++ b/forest.py Mon Oct 23 13:46:04 2006 +0200 @@ -150,7 +150,7 @@ repo = None for t in self.trees: root, rev, path = t.info(pathalias) - ui.write("\n[%s]\n" % root) + ui.write("[%s]\n" % root) if path is None: ui.warn(_("no path alias '%s' defined\n") % pathalias) continue @@ -166,6 +166,7 @@ ui.warn(_("mq patches applied\n")) continue func(repo, path, rev) + ui.write("\n") def update(self, ui, repo): @@ -198,8 +199,9 @@ index = 1 for t in self.trees: section = 'tree' + str(index) - ui.write("\n[%s]\n" % section) + ui.write("[%s]\n" % section) t.write(ui, section) + ui.write("\n") index += 1 @@ -226,6 +228,7 @@ os.makedirs(destpfx) ui.write("[%s]\n" % root[0]) commands.clone(ui, root[1], root[2], **opts) + ui.write("\n") def pull(ui, toprepo, snapfile, pathalias, **opts): @@ -277,6 +280,8 @@ cfg.read(snapshot) index = 1 while True: + if index > 1: + ui.write("\n") index += 1 section = 'tree' + str(index) if not cfg.has_section(section): @@ -289,7 +294,7 @@ (pathalias, dest)) continue source = cfg.get(psect, pathalias) - ui.write("\n[%s]\n" % root) + ui.write("[%s]\n" % root) if os.path.exists(dest): ui.warn(_("destination '%s' already exists, skipping\n") % dest) continue @@ -322,9 +327,10 @@ mqflag = "" if mq_patches_applied(repo.root): mqflag = " *mq*" - ui.write("\n[%s]%s\n" % (root, mqflag)) + ui.write("[%s]%s\n" % (root, mqflag)) repo = repository(ui, root) commands.status(repo.ui, repo, *pats, **opts) + ui.write("\n") def trees(ui, *unused):