Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package b4 for openSUSE:Factory checked in 
at 2023-01-06 17:05:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/b4 (Old)
 and      /work/SRC/openSUSE:Factory/.b4.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "b4"

Fri Jan  6 17:05:58 2023 rev:30 rq:1056333 version:0.11.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/b4/b4.changes    2023-01-02 15:02:35.929496096 
+0100
+++ /work/SRC/openSUSE:Factory/.b4.new.1563/b4.changes  2023-01-06 
17:06:44.800582678 +0100
@@ -1,0 +2,10 @@
+Fri Jan  6 07:22:24 UTC 2023 - Jiri Slaby <jsl...@suse.cz>
+
+- update to 0.11.2:
+  * Always run log with --no-abbrev-commit
+  * Handle series with more than 999 patches
+  * ez: dedupe cover letter CCs taken from individual patches
+  * ez: avoid header wrapping when writing to file
+  * ez: don't crash on non-existent tag in show_info
+
+-------------------------------------------------------------------

Old:
----
  b4-0.11.1.tar.gz

New:
----
  b4-0.11.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ b4.spec ++++++
--- /var/tmp/diff_new_pack.2vldOS/_old  2023-01-06 17:06:45.212584992 +0100
+++ /var/tmp/diff_new_pack.2vldOS/_new  2023-01-06 17:06:45.216585014 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           b4
-Version:        0.11.1
+Version:        0.11.2
 Release:        0
 Summary:        Helper scripts for kernel.org patches
 License:        GPL-2.0-or-later

++++++ b4-0.11.1.tar.gz -> b4-0.11.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/b4-0.11.1/b4/__init__.py new/b4-0.11.2/b4/__init__.py
--- old/b4-0.11.1/b4/__init__.py        2022-12-21 15:38:47.000000000 +0100
+++ new/b4-0.11.2/b4/__init__.py        2023-01-05 17:30:41.000000000 +0100
@@ -53,7 +53,7 @@
 # global setting allowing us to turn off networking
 can_network = True
 
-__VERSION__ = '0.11.1'
+__VERSION__ = '0.11.2'
 PW_REST_API_VERSION = '1.2'
 
 
@@ -1958,7 +1958,7 @@
             for chunk in bracketed.split():
                 # Remove any trailing commas or semicolons
                 chunk = chunk.strip(',;')
-                if re.search(r'^\d{1,3}/\d{1,3}$', chunk):
+                if re.search(r'^\d{1,4}/\d{1,4}$', chunk):
                     counters = chunk.split('/')
                     self.counter = int(counters[0])
                     self.expected = int(counters[1])
@@ -2195,6 +2195,11 @@
         if os.path.exists(os.path.join(gitdir, '.git')):
             gitdir = os.path.join(gitdir, '.git')
         cmdargs += ['--git-dir', gitdir]
+
+    # counteract some potential local settings
+    if args[0] == 'log':
+        args.insert(1, '--no-abbrev-commit')
+
     cmdargs += args
 
     ecode, out, err = _run_command(cmdargs, stdin=stdin)
@@ -3236,8 +3241,11 @@
         else:
             # Use SMTP policy if we're actually going to send things out
             msg = sevenbitify_headers(msg)
-            if dryrun or web_endpoint:
-                # Use SMTP policy, but no CRLF
+            if dryrun:
+                # Use HTTP policy, to avoid header wrapping
+                policy = email.policy.HTTP.clone(linesep='\n')
+            elif web_endpoint:
+                # Use SMTP policy with LF endings
                 policy = email.policy.SMTP.clone(linesep='\n')
             else:
                 policy = email.policy.SMTP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/b4-0.11.1/b4/ez.py new/b4-0.11.2/b4/ez.py
--- old/b4-0.11.1/b4/ez.py      2022-12-21 15:38:47.000000000 +0100
+++ new/b4-0.11.2/b4/ez.py      2023-01-05 17:30:41.000000000 +0100
@@ -1474,10 +1474,12 @@
                     mycc.append(pair)
         elif not commit and len(pccs):
             # the cover letter gets sent to folks with individual patch cc's
+            _seen = set(seen)
             for _commit, _ccs in pccs.items():
                 for pair in _ccs:
-                    if pair[1] not in seen:
+                    if pair[1] not in _seen:
                         mycc.append(pair)
+                        _seen.add(pair[1])
         if mycc and not myto:
             # Move all Cc's into To when there's no To:
             myto = mycc
@@ -1722,8 +1724,11 @@
     if 'history' in ts:
         for rn, links in reversed(ts['history'].items()):
             tagname, revision = get_sent_tagname(mybranch, SENT_TAG_PREFIX, rn)
-            cover, base_commit, change_id = get_base_changeid_from_tag(tagname)
-            print('series-%s: %s..%s %s' % (rn, base_commit[:12], tagname, 
links[0]))
+            try:
+                cover, base_commit, change_id = 
get_base_changeid_from_tag(tagname)
+                print('series-%s: %s..%s %s' % (rn, base_commit[:12], tagname, 
links[0]))
+            except RuntimeError:
+                logger.debug('No tag matching %s', tagname)
 
 
 def force_revision(forceto: int) -> None:

Reply via email to