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

[PATCH 1/4] Make Series::patch_applied public.

From
Yann Dirson <ydirson@altern.org>
Date
Nov 23, 2006, 23:16 UTC
Message-ID
<20061123231632.9769.72003.stgit@gandelf.nowhere.earth>
In-Reply-To
<20061123230721.9769.38403.stgit@gandelf.nowhere.earth>
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 stgit/stack.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/stgit/stack.py b/stgit/stack.py
index a477e7d..49cfebb 100644
--- a/stgit/stack.py
+++ b/stgit/stack.py
@@ -417,7 +417,7 @@ class Series:
     def __patch_is_current(self, patch):
         return patch.get_name() == read_string(self.__current_file)
 
-    def __patch_applied(self, name):
+    def patch_applied(self, name):
         """Return true if the patch exists in the applied list
         """
         return name in self.get_applied()
@@ -430,7 +430,7 @@ class Series:
     def patch_exists(self, name):
         """Return true if there is a patch with the given name, false
         otherwise."""
-        return self.__patch_applied(name) or self.__patch_unapplied(name)
+        return self.patch_applied(name) or self.__patch_unapplied(name)
 
     def __begin_stack_check(self):
         """Save the current HEAD into .git/refs/heads/base if the stack
@@ -713,7 +713,7 @@ class Series:
                   before_existing = False, refresh = True):
         """Creates a new patch
         """
-        if self.__patch_applied(name) or self.__patch_unapplied(name):
+        if self.patch_applied(name) or self.__patch_unapplied(name):
             raise StackException, 'Patch "%s" already exists' % name
 
         if not message and can_edit:
@@ -773,7 +773,7 @@ class Series:
 
         if self.__patch_is_current(patch):
             self.pop_patch(name)
-        elif self.__patch_applied(name):
+        elif self.patch_applied(name):
             raise StackException, 'Cannot remove an applied patch, "%s", ' \
                   'which is not current' % name
Previous: Yann DirsonNext: Yann Dirson
Message 2 of 6 in “Series short description”
  1. 0/4 Series short descriptionYann Dirson, Nov 23, 2006
  2. 1/4 Make Series::patch_applied public.Yann Dirson, Nov 23, 2006
  3. 2/4 Allows to refresh a non-top applied patch.Yann Dirson, Nov 23, 2006
  4. 3/4 Optimize stg goto in the pop case.Yann Dirson, Nov 23, 2006
  5. 4/4 Bomb out when --ack and --sign are both passed to "refresh".Yann Dirson, Nov 23, 2006
  6. Catalin MarinasNov 24, 2006

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.