Rev 4299: (Jelmer) Don't retrieve the tree if log is called on the root. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Fri Apr 17 18:19:42 BST 2009


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 4299
revision-id: pqm at pqm.ubuntu.com-20090417171939-j404oqle9jo68zwg
parent: pqm at pqm.ubuntu.com-20090417153307-fmbzf4klhhqbawrh
parent: jelmer at samba.org-20090417001045-8elg0p1apb0w8bnm
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2009-04-17 18:19:39 +0100
message:
  (Jelmer) Don't retrieve the tree if log is called on the root.
modified:
  bzrlib/log.py                  log.py-20050505065812-c40ce11702fe5fb1
    ------------------------------------------------------------
    revno: 4296.2.1
    revision-id: jelmer at samba.org-20090417001045-8elg0p1apb0w8bnm
    parent: pqm at pqm.ubuntu.com-20090416170746-92fj72e2i2qpkojj
    committer: Jelmer Vernooij <jelmer at samba.org>
    branch nick: bzr.dev
    timestamp: Fri 2009-04-17 02:10:45 +0200
    message:
      Don't retrieve the tree if log is called on the root.
    modified:
      bzrlib/log.py                  log.py-20050505065812-c40ce11702fe5fb1
=== modified file 'bzrlib/log.py'
--- a/bzrlib/log.py	2009-04-17 07:34:57 +0000
+++ b/bzrlib/log.py	2009-04-17 17:19:39 +0000
@@ -1833,6 +1833,8 @@
     info_list = []
     start_rev_info, end_rev_info = _get_revision_range(revisionspec_list, b,
         "log")
+    if relpaths in ([], [u'']):
+        return b, [], start_rev_info, end_rev_info
     if start_rev_info is None and end_rev_info is None:
         if tree is None:
             tree = b.basis_tree()




More information about the bazaar-commits mailing list