aboutsummaryrefslogtreecommitdiff
path: root/release/scripts
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-10-09 22:45:54 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-10-09 22:45:54 +0000
commit9be27fdc00bb8c7059ff388c089bb4f9092bf941 (patch)
tree04d44948f6dbd99eedf69ea5dd2a013233662723 /release/scripts
parenta3c3d010c96620aeef96df9f0c9268fb11ca431b (diff)
parentc8cbf0d5ea9d75467436eeb0472777bd1e02d5a1 (diff)
downloadsrc-9be27fdc00bb8c7059ff388c089bb4f9092bf941.tar.gz
src-9be27fdc00bb8c7059ff388c089bb4f9092bf941.zip
Merge from head
Notes
Notes: svn path=/projects/release-pkg/; revision=289092
Diffstat (limited to 'release/scripts')
-rwxr-xr-xrelease/scripts/list-new-changesets.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/release/scripts/list-new-changesets.py b/release/scripts/list-new-changesets.py
index 16694c5587eb..ffb4f48ccb86 100755
--- a/release/scripts/list-new-changesets.py
+++ b/release/scripts/list-new-changesets.py
@@ -44,6 +44,7 @@
# list-new-changesets.py -r254153:261794 \
# svn://svn.freebsd.org/base/stable/9
+from __future__ import print_function
import os
import subprocess
import sys
@@ -60,15 +61,15 @@ def print_logentry(logentry):
date = logentry.find('date').text
msg = logentry.find('msg').text
- print "-" * 71
- print "%s | %s | %s" % (rev, author, date)
- print "Changed paths:"
+ print("-" * 71)
+ print("%s | %s | %s" % (rev, author, date))
+ print("Changed paths:")
for paths in logentry.findall('paths'):
for path in paths.findall('path'):
- print " %s %s" % (path.attrib['action'], path.text)
+ print(" %s %s" % (path.attrib['action'], path.text))
- print
- print msg.encode('utf-8')
+ print()
+ print(msg.encode('utf-8'))
def main(args):
"""Main function.
@@ -80,13 +81,13 @@ def main(args):
cmd = ["svn", "log", "-v", "--xml"]
cmd += args[1:]
- print " ".join(cmd)
+ print(" ".join(cmd))
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(out, err) = proc.communicate()
if proc.returncode != 0:
- print err
+ print(err)
sys.exit(proc.returncode)
displayed_entries = 0
@@ -107,10 +108,10 @@ def main(args):
displayed_entries += 1
if displayed_entries == 0:
- print "No changesets with Added or Deleted files"
+ print("No changesets with Added or Deleted files")
if displayed_entries > 0:
- print "-" * 71
+ print("-" * 71)
if __name__ == "__main__":