git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] Warn the user when there is no parent information in the config.

From
Yann Dirson <ydirson@altern.org>
Date
Feb 3, 2007, 16:04 UTC
Message-ID
<20070203160425.32054.75599.stgit@gandelf.nowhere.earth>
In-Reply-To
<20070203160257.32054.17787.stgit@gandelf.nowhere.earth>
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 stgit/stack.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/stgit/stack.py b/stgit/stack.py
index 3960729..9609ed3 100644
--- a/stgit/stack.py
+++ b/stgit/stack.py
@@ -418,8 +418,7 @@ class Series(StgitObject):
         if value:
             return value
         elif 'origin' in git.remotes_list():
-            # FIXME: this is for compatibility only.  Should be
-            # dropped when all relevant commands record this info.
+            print "Notice: no parent remote declared for stack '%s', defaulting to 'origin'.  Consider setting 'branch.%s.remote' with 'git repo-config'." % (self.__name, self.__name)
             return 'origin'
         else:
             raise StackException, 'Cannot find a parent remote for "%s"' % self.__name
@@ -432,8 +431,7 @@ class Series(StgitObject):
         if value:
             return value
         elif git.rev_parse('heads/origin'):
-            # FIXME: this is for compatibility only.  Should be
-            # dropped when all relevant commands record this info.
+            print "Notice: no parent branch declared for stack '%s', defaulting to 'heads/origin'.  Consider setting 'branch.%s.merge' with 'git repo-config'." % (self.__name, self.__name)
             return 'heads/origin'
         else:
             raise StackException, 'Cannot find a parent branch for "%s"' % self.__name
Previous: Yann Dirson
Message 3 of 3 in “Minor stgit touches”
  1. 0/2 Minor stgit touchesYann Dirson, Feb 3, 2007
  2. 1/2 Correctly check the pull-does-rebase parameter in 'stg pull'.Yann Dirson, Feb 3, 2007
  3. 2/2 Warn the user when there is no parent information in the config.Yann Dirson, Feb 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.