Rev 1709: Avoid NoneType error when no revisions to push in "bzr dpush". in http://people.samba.org/bzr/jelmer/bzr-svn/trunk

Jelmer Vernooij jelmer at samba.org
Sun Sep 7 21:59:28 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/trunk

------------------------------------------------------------
revno: 1709
revision-id: jelmer at samba.org-20080907205923-r531loa8e0nqdmjc
parent: jelmer at samba.org-20080906041401-bb1lj1l960s9fnw0
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Sun 2008-09-07 22:59:23 +0200
message:
  Avoid NoneType error when no revisions to push in "bzr dpush".
modified:
  NEWS                           news-20061231030336-h9fhq245ie0de8bs-1
  commit.py                      commit.py-20060607190346-qvq128wgfubhhgm2-1
=== modified file 'NEWS'
--- a/NEWS	2008-09-06 04:14:01 +0000
+++ b/NEWS	2008-09-07 20:59:23 +0000
@@ -8,6 +8,8 @@
 
    * Fix linking against Subversion 1.5 on Windows. (#263570)
 
+   * Avoid NoneType error when no revisions to push in "bzr dpush". (#267484)
+
 bzr-svn 0.4.12	2008-09-01
 
   BUG FIXES

=== modified file 'commit.py'
--- a/commit.py	2008-08-26 01:44:41 +0000
+++ b/commit.py	2008-09-07 20:59:23 +0000
@@ -701,12 +701,12 @@
         if stop_revision is None:
             stop_revision = ensure_null(source.last_revision())
         if target.last_revision() in (stop_revision, source.last_revision()):
-            return
+            return {}
         graph = target.repository.get_graph()
         if not source.repository.get_graph().is_ancestor(target.last_revision(), 
                                                         stop_revision):
             if graph.is_ancestor(stop_revision, target.last_revision()):
-                return
+                return {}
             raise DivergedBranches(source, target)
         todo = target.mainline_missing_revisions(source, stop_revision)
         revid_map = {}




More information about the bazaar-commits mailing list