Diff
Not logged in

Differences From:

File src/update.c part of check-in [f57990b65a] - Alway run autosync prior to an "update" even when specifying a specific check-in to update to. by drh on 2009-11-03 19:43:36. [view]

To:

File src/update.c part of check-in [a51808c0a5] - Work toward improving the "diff" command. Get the "-r" or "--from" option working. by drh on 2009-11-06 01:59:29. [view]

@@ -246,9 +246,16 @@
   Blob mfile;
   Manifest m;
   int i, rid=0;
 
-  rid = name_to_rid(revision);
+  if( revision ){
+    rid = name_to_rid(revision);
+  }else{
+    rid = db_lget_int("checkout", 0);
+  }
+  if( !is_a_version(rid) ){
+    fossil_fatal("no such check-out: %s", revision);
+  }
   content_get(rid, &mfile);
 
   if( manifest_parse(&m, &mfile) ){
     for(i=0; i<m.nFile; i++){