Fossil

Check-in [4dc622f36c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fixed bug in open_cmd. As of ff4c, open now runs update --latest as well, which would err on a brand new, blank, database. open_cmd now only runs update --latest if the current pid != 0
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4dc622f36c5aec900cd8039d4087f578afe31eb3
User & Date: jnc 2007-09-23 22:27:56.000
Context
2007-09-23
23:05
One more minor change to the fix of ff4c, set the current checkout to 1 if this is a brand new file. check-in: 746a0b8588 user: jnc tags: trunk
22:27
Fixed bug in open_cmd. As of ff4c, open now runs update --latest as well, which would err on a brand new, blank, database. open_cmd now only runs update --latest if the current pid != 0 check-in: 4dc622f36c user: jnc tags: trunk
20:18
Merge the RSS changes. check-in: dad40ffac0 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
886
887
888
889
890
891
892

893
894
895

896
897
898
899
900
901
902
  db_open_repository(blob_str(&path));
  db_init_database("./_FOSSIL_", zLocalSchema, (char*)0);
  db_open_local();
  db_lset("repository", blob_str(&path));
  vid = db_int(0, "SELECT pid FROM plink y"
                  " WHERE NOT EXISTS(SELECT 1 FROM plink x WHERE x.cid=y.pid)");
  db_lset_int("checkout", vid);

  g.argv = azNewArgv;
  g.argc = 3;
  update_cmd();

}

/*
** COMMAND: config
**
** Usage: %fossil config NAME=VALUE ...
**







>
|
|
|
>







886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
  db_open_repository(blob_str(&path));
  db_init_database("./_FOSSIL_", zLocalSchema, (char*)0);
  db_open_local();
  db_lset("repository", blob_str(&path));
  vid = db_int(0, "SELECT pid FROM plink y"
                  " WHERE NOT EXISTS(SELECT 1 FROM plink x WHERE x.cid=y.pid)");
  db_lset_int("checkout", vid);
  if( vid!=0 ){
    g.argv = azNewArgv;
    g.argc = 3;
    update_cmd();
  }
}

/*
** COMMAND: config
**
** Usage: %fossil config NAME=VALUE ...
**