[Pkg-bazaar-commits] ./bzr/unstable r96: with commit -v, show committed revision number

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 10 07:51:07 UTC 2009


------------------------------------------------------------
revno: 96
committer: mbp at sourcefrog.net
timestamp: Fri 2005-03-25 19:26:36 +1100
message:
  with commit -v, show committed revision number
modified:
  NEWS
  bzrlib/branch.py
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS	2005-03-25 03:47:50 +0000
+++ b/NEWS	2005-03-25 08:26:36 +0000
@@ -9,6 +9,8 @@
     * Less file flushing and faster performance when writing logs and
       committing to stores.
 
+    * More useful verbose output from some commands.
+
   BUG FIXES:
 
     * Fix inverted display of 'R' and 'M' during 'commit -v'.

=== modified file 'bzrlib/branch.py'
--- a/bzrlib/branch.py	2005-03-25 03:47:50 +0000
+++ b/bzrlib/branch.py	2005-03-25 08:26:36 +0000
@@ -542,9 +542,12 @@
         mutter("committing patch r%d" % (self.revno() + 1))
 
         mutter("append to revision-history")
-        self.controlfile('revision-history', 'at').write(rev_id + '\n')
+        f = self.controlfile('revision-history', 'at')
+        f.write(rev_id + '\n')
+        f.close()
 
-        mutter("done!")
+        if verbose:
+            note("commited r%d" % self.revno())
 
 
     def get_revision(self, revision_id):



More information about the Pkg-bazaar-commits mailing list