monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] "monotone update" change


From: Tom Tromey
Subject: [Monotone-devel] "monotone update" change
Date: 06 Sep 2003 17:57:19 -0600

I've checked in the appended.

I'm sending it here since it isn't clear to me that this is the best
approach.  Perhaps it would be better to have pick_update_target
return a bool telling the update command what to do.

OTOH, perhaps this change sets the stage for making "rm NEWS; monotone
update" work.

I'm committing anyway since reverting seems cheap...  naturally I'm
being careful to keep each commit a single logical change.  If I'm
missing something here, let me know and I will revert.

Tom

--- ChangeLog
+++ ChangeLog
@@ -1,5 +1,8 @@
 2003-09-06  Tom Tromey  <address@hidden>
 
+       * update.cc (pick_update_target): Not an error if nothing to
+       update.
+
        * monotone.texi: Use VERSION; include version.texi.
 
        * monotone.1: Document "co".
--- update.cc
+++ update.cc
@@ -302,8 +302,8 @@
     }
   
   find_descendents(base_ident, app, candidates);
-  N (candidates.size() != 0,
-     "no update candidates in descendents set");
+  if (candidates.size() == 0)
+    candidates.insert(base_ident);
   
   if (candidates.size() > 1
       && (app.branch_name != ""))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]