[Pkg-bazaar-commits] ./bzr/unstable r533: - fix up asking for the log for the root of a remote branch
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:19:20 UTC 2009
------------------------------------------------------------
revno: 533
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Tue 2005-05-17 18:27:03 +1000
message:
- fix up asking for the log for the root of a remote branch
modified:
bzrlib/commands.py
bzrlib/log.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2005-05-17 08:00:32 +0000
+++ b/bzrlib/commands.py 2005-05-17 08:27:03 +0000
@@ -597,7 +597,10 @@
if filename:
b = find_branch(filename, lock_mode='r')
fp = b.relpath(filename)
- file_id = b.read_working_inventory().path2id(fp)
+ if fp:
+ file_id = b.read_working_inventory().path2id(fp)
+ else:
+ file_id = None # points to branch root
else:
b = find_branch('.', lock_mode='r')
file_id = None
=== modified file 'bzrlib/log.py'
--- a/bzrlib/log.py 2005-05-17 08:23:28 +0000
+++ b/bzrlib/log.py 2005-05-17 08:27:03 +0000
@@ -117,6 +117,10 @@
from errors import BzrCheckError
from textui import show_status
+
+ if specific_fileid:
+ mutter('get log for file_id %r' % specific_fileid)
+
if to_file == None:
import sys
to_file = sys.stdout
More information about the Pkg-bazaar-commits
mailing list