[cig-commits] commit: Fix hg ftrees so it works properly on convert=True

Mercurial hg at geodynamics.org
Mon Nov 24 11:27:06 PST 2008


changeset:   53:5f46981d6b9c
user:        Simon Law <simon at akoha.org>
date:        Tue Jul 10 16:21:50 2007 -0400
files:       forest.py
description:
Fix hg ftrees so it works properly on convert=True


diff -r 504a07390de3 -r 5f46981d6b9c forest.py
--- a/forest.py	Tue Jul 10 12:20:52 2007 -0400
+++ b/forest.py	Tue Jul 10 16:21:50 2007 -0400
@@ -520,7 +520,8 @@ def trees(ui, repo, convert=False, walkh
         l = repo.forests(walkhg)
     else:
         root = repo.root
-        l = [os.sep.join(root, f) for f in repo.forests(walkhg)]
+        l = [(f == "." and root) or os.sep.join((root, f))
+             for f in repo.forests(walkhg)]
     for t in l:
         ui.write(t + '\n')
 



More information about the CIG-COMMITS mailing list