[Pkg-bazaar-commits] ./bzr/unstable r216: revfile add and add-delta commands print just the index for use by scripts
mbp at sourcefrog.net
mbp at sourcefrog.net
Fri Apr 10 07:44:01 UTC 2009
------------------------------------------------------------
revno: 216
committer: mbp at sourcefrog.net
timestamp: Sat 2005-04-09 15:26:51 +1000
message:
revfile add and add-delta commands print just the index for use by scripts
modified:
bzrlib/revfile.py
-------------- next part --------------
=== modified file 'bzrlib/revfile.py'
--- a/bzrlib/revfile.py 2005-04-09 05:24:56 +0000
+++ b/bzrlib/revfile.py 2005-04-09 05:26:51 +0000
@@ -225,7 +225,6 @@
only be used if it would be a size win and if the existing
base is not at too long of a delta chain already.
"""
-
text_sha = sha.new(text).digest()
idx = self.find_sha(text_sha)
@@ -370,10 +369,10 @@
if cmd == 'add':
new_idx = r.add(sys.stdin.read())
- print 'added idx %d' % new_idx
+ print new_idx
elif cmd == 'add-delta':
new_idx = r.add(sys.stdin.read(), int(argv[2]))
- print 'added idx %d' % new_idx
+ print new_idx
elif cmd == 'dump':
r.dump()
elif cmd == 'get':
More information about the Pkg-bazaar-commits
mailing list