1. Patrick Mézard
  2. hgforest-crew

Commits

Simon Law  committed 5fbe5f2

When no paths are defined, fpull should not abort.

  • Participants
  • Parent commits 84b1495
  • Branches default

Comments (0)

Files changed (1)

File forest.py

View file
     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)
                 else:
                     ui.warn(_("warning: %s\n") %
                             _("repository %s not found") % source[0])
+                    return
             try:
                 tree.getrepo(ui)
             except RepoError: