[cig-commits] commit: When no paths are defined, fpull should not abort.

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


changeset:   76:5fbe5f2ac36a
user:        Simon Law <simon at akoha.org>
date:        Thu Sep 06 11:25:17 2007 -0400
files:       forest.py
description:
When no paths are defined, fpull should not abort.


diff -r 84b149548921 -r 5fbe5f2ac36a forest.py
--- a/forest.py	Tue Sep 04 19:51:25 2007 -0400
+++ b/forest.py	Thu Sep 06 11:25:17 2007 -0400
@@ -954,7 +954,8 @@ def pull(ui, top, source="default", path
     toproot = forest.top().root
     if not snapfile:
         # Look for new remote paths from source
-        srcrepo = hg.repository(ui, forest.top().getpath(source))
+        srcpath = forest.top().getpath(source) or ""
+        srcrepo = hg.repository(ui, srcpath)
         srcforests = None
         try:
             srcforests = srcrepo.forests(walkhg)
@@ -989,6 +990,7 @@ def pull(ui, top, source="default", path
                 else:
                     ui.warn(_("warning: %s\n") %
                             _("repository %s not found") % source[0])
+                    return
             try:
                 tree.getrepo(ui)
             except RepoError:



More information about the CIG-COMMITS mailing list