mercurial/subrepo.py
changeset 14443 6fe6defdc924
parent 14440 96f1c1b14154
child 14481 b2ee161328e0
--- a/mercurial/subrepo.py	Thu May 26 17:15:35 2011 -0500
+++ b/mercurial/subrepo.py	Fri May 27 11:01:44 2011 +0200
@@ -79,9 +79,8 @@
 
 def writestate(repo, state):
     """rewrite .hgsubstate in (outer) repo with these subrepo states"""
-    repo.wwrite('.hgsubstate',
-                ''.join(['%s %s\n' % (state[s][1], s)
-                         for s in sorted(state)]), '')
+    lines = ['%s %s\n' % (state[s][1], s) for s in sorted(state)]
+    repo.wwrite('.hgsubstate', ''.join(lines), '')
 
 def submerge(repo, wctx, mctx, actx, overwrite):
     """delegated from merge.applyupdates: merging of .hgsubstate file