changeset 76:5fbe5f2ac36a

When no paths are defined, fpull should not abort.
author Simon Law <simon@akoha.org>
date Thu, 06 Sep 2007 11:25:17 -0400
parents 84b149548921
children de0d2b10ed66
files forest.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
     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 @@
                 else:
                     ui.warn(_("warning: %s\n") %
                             _("repository %s not found") % source[0])
+                    return
             try:
                 tree.getrepo(ui)
             except RepoError: