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

[PATCH] Stgit: allow importing series files where patch names include slashes

From
PGPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Date
Oct 29, 2006, 17:35 UTC
Message-ID
<20061029173516.27112.86149.stgit@americanbeauty.home.lan>
From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

Do that by converting slashes in patch name to dashes. Actually one could think that different quilt folders relate to topic branches, but I do not see an obviously correct mapping nor users which would do that.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---
 stgit/commands/imprt.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py
index 1b7dce8..c8cf42b 100644
--- a/stgit/commands/imprt.py
+++ b/stgit/commands/imprt.py
@@ -85,6 +85,11 @@ def __strip_patch_name(name):
 
     return stripped
 
+def __replace_slashes_with_dashes(name):
+    stripped = name.replace('/', '-')
+
+    return stripped
+
 def __parse_description(descr):
     """Parse the patch description and return the new description and
     author information (if any).
@@ -299,6 +304,7 @@ def __import_series(filename, options):
 
         if options.strip:
             patch = __strip_patch_name(patch)
+        patch = __replace_slashes_with_dashes(patch);
         if options.ignore and patch in applied:
             print 'Ignoring already applied patch "%s"' % patch
             continue
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 
Message 1 of 1 in “Stgit: allow importing series files where patch names include slashes”
  1. Stgit: allow importing series files where patch names include slashesPaolo 'Blaisorblade' Giarrusso, Oct 29, 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.