All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Minor stgit touches
@ 2007-02-03 16:04 Yann Dirson
  2007-02-03 16:04 ` [PATCH 1/2] Correctly check the pull-does-rebase parameter in 'stg pull' Yann Dirson
  2007-02-03 16:04 ` [PATCH 2/2] Warn the user when there is no parent information in the config Yann Dirson
  0 siblings, 2 replies; 3+ messages in thread
From: Yann Dirson @ 2007-02-03 16:04 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git

Here is one bugfix, and the addition of a notice to the user when we
fallback to "origin" as a parent because of the lack of config
parameters.

-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] Correctly check the pull-does-rebase parameter in 'stg pull'.
  2007-02-03 16:04 [PATCH 0/2] Minor stgit touches Yann Dirson
@ 2007-02-03 16:04 ` Yann Dirson
  2007-02-03 16:04 ` [PATCH 2/2] Warn the user when there is no parent information in the config Yann Dirson
  1 sibling, 0 replies; 3+ messages in thread
From: Yann Dirson @ 2007-02-03 16:04 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git




Signed-off-by: Yann Dirson <ydirson@altern.org>
---

 stgit/commands/pull.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/stgit/commands/pull.py b/stgit/commands/pull.py
index 15bbed6..330cc25 100644
--- a/stgit/commands/pull.py
+++ b/stgit/commands/pull.py
@@ -72,7 +72,8 @@ def func(parser, options, args):
     # pull the remote changes
     print 'Pulling from "%s"...' % repository
     git.fetch(repository)
-    if (config.get('stgit.pull-does-rebase')):
+    if (config.get('stgit.pull-does-rebase') == 'yes'):
+        print "rebasing to '%s'..." % crt_series.get_parent_branch()
         git.reset(tree_id = git.rev_parse(crt_series.get_parent_branch()))
     print 'done'
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] Warn the user when there is no parent information in the config.
  2007-02-03 16:04 [PATCH 0/2] Minor stgit touches Yann Dirson
  2007-02-03 16:04 ` [PATCH 1/2] Correctly check the pull-does-rebase parameter in 'stg pull' Yann Dirson
@ 2007-02-03 16:04 ` Yann Dirson
  1 sibling, 0 replies; 3+ messages in thread
From: Yann Dirson @ 2007-02-03 16:04 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git




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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-03 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-03 16:04 [PATCH 0/2] Minor stgit touches Yann Dirson
2007-02-03 16:04 ` [PATCH 1/2] Correctly check the pull-does-rebase parameter in 'stg pull' Yann Dirson
2007-02-03 16:04 ` [PATCH 2/2] Warn the user when there is no parent information in the config Yann Dirson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.