Ubuntu Pastebin

Paste from root at Wed, 27 Jul 2016 14:32:40 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- /usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/exporter.py.dist	2016-07-27 13:47:58.178924517 +0000
+++ /usr/lib/python2.7/dist-packages/bzrlib/plugins/fastimport/exporter.py	2016-07-27 14:31:46.112983266 +0000
@@ -427,6 +427,21 @@
         # don't repeat it here.
         if self.plain_format:
             properties = None
+            if "bugs" in revobj.properties:
+                #sys.stderr.write("bugs: %s\n" % properties["bugs"])
+                bugstatements = revobj.properties["bugs"].split("\n")
+                bugs = []
+                for bugstatement in bugstatements:
+                    bugurl, comment = bugstatement.split(" ")
+                    #sys.stderr.write("bug: %s\n" % bugurl)
+                    bugs.append("#" + bugurl.rpartition("/")[2])
+
+                #sys.stderr.write("LP: %s\n" % ', '.join(bugs))
+                revobj.message += "\nLP: %s" % ', '.join(bugs)
+            #for prop in properties.keys():
+            #    if prop != "bugs":
+            #        sys.stderr.write("Dropping property %s\n" % prop)
+            #        del properties[prop]
         else:
             properties = revobj.properties
             for prop in self.properties_to_exclude:
Download as text