[cig-commits] commit: end per-tree output with an empty line
Mercurial
hg at geodynamics.org
Mon Nov 24 11:26:47 PST 2008
changeset: 7:118793cfcca3
user: Robin Farine <robin.farine at terminus.org>
date: Mon Oct 23 13:46:04 2006 +0200
files: forest.py
description:
end per-tree output with an empty line
diff -r a41d82517c45 -r 118793cfcca3 forest.py
--- 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 @@ class ForestSnapshot(object):
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 @@ class ForestSnapshot(object):
ui.warn(_("mq patches applied\n"))
continue
func(repo, path, rev)
+ ui.write("\n")
def update(self, ui, repo):
@@ -198,8 +199,9 @@ class ForestSnapshot(object):
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 @@ def clone(ui, source, dest, **opts):
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 @@ def seed(ui, repo, snapshot, pathalias,
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 @@ def seed(ui, repo, snapshot, pathalias,
(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 @@ def status(ui, repo, *pats, **opts):
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):
More information about the CIG-COMMITS
mailing list