[Pkg-bazaar-commits] ./bzr/unstable r818: - Clear pending-merge list when committing.

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:21:07 UTC 2009


------------------------------------------------------------
revno: 818
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Mon 2005-07-04 22:22:34 +1000
message:
  - Clear pending-merge list when committing.
modified:
  TODO
  bzrlib/commit.py
  bzrlib/selftest/whitebox.py
-------------- next part --------------
=== modified file 'TODO'
--- a/TODO	2005-06-24 09:18:43 +0000
+++ b/TODO	2005-07-04 12:22:34 +0000
@@ -111,6 +111,8 @@
 * ``bzr status FOO`` where foo is ignored should say so.
 
 * ``bzr mkdir A...`` should just create and add A.
+
+* Guard against repeatedly merging any particular patch.
   
 
 
@@ -300,6 +302,8 @@
 * Don't pass around command classes but rather pass objects.  This'd
   make it cleaner to construct objects wrapping external commands.
 
+* Track all merged-in revisions in a versioned add-only metafile.
+
 
 Large things
 ------------

=== modified file 'bzrlib/commit.py'
--- a/bzrlib/commit.py	2005-07-04 11:57:18 +0000
+++ b/bzrlib/commit.py	2005-07-04 12:22:34 +0000
@@ -169,6 +169,8 @@
 
         branch.append_revision(rev_id)
 
+        branch.set_pending_merges([])
+
         if verbose:
             note("commited r%d" % branch.revno())
     finally:

=== modified file 'bzrlib/selftest/whitebox.py'
--- a/bzrlib/selftest/whitebox.py	2005-07-04 11:57:18 +0000
+++ b/bzrlib/selftest/whitebox.py	2005-07-04 12:22:34 +0000
@@ -73,6 +73,10 @@
                           'foo at azkhazan-123123-abcabc')
         self.assertEquals(rev.parents[1].revision_id,
                            'wibble at fofof--20050401--1928390812')
+
+        # list should be cleared when we do a commit
+        self.assertEquals(b.pending_merges(), [])
+        
         
         
 



More information about the Pkg-bazaar-commits mailing list