Fossil

Check-in [107f38dd]
Login

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

Overview
Comment:Make "revert" complain about excess arguments. Ticket [36d5fbf9a4].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 107f38dd014ae469dcac1f3e1c4fb230ffdc7d71
User & Date: eric 2009-10-27 20:15:30
References
2009-10-31
13:13 Fixed ticket [36d5fbf9]: Revert's error handling is suboptimal. plus 2 other changes artifact: d0be538b user: drh
Context
2009-10-31
13:11
Make use of the is_a_version() function to check for valid version IDs in the checkout command. Ticket [2de4ae605844fe3f]. check-in: 999b1779 user: drh tags: trunk
2009-10-27
20:15
Make "revert" complain about excess arguments. Ticket [36d5fbf9a4]. check-in: 107f38dd user: eric tags: trunk
2009-10-21
15:43
update makefile for win32 check-in: 3275d9c6 user: rwilson tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/update.c.

292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
  Blob ans;
  int rid = 0, yesRevert;
  
  yesRevert = find_option("yes", "y", 0)!=0;
  zRevision = find_option("revision", "r", 1);
  verify_all_options();
  
  if( g.argc<3 ){
    usage("?OPTIONS FILE");
  }
  db_must_be_within_tree();
  
  zFile = mprintf("%/", g.argv[g.argc-1]);

  file_tree_name(zFile, &fname, 1);







|







292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
  Blob ans;
  int rid = 0, yesRevert;
  
  yesRevert = find_option("yes", "y", 0)!=0;
  zRevision = find_option("revision", "r", 1);
  verify_all_options();
  
  if( g.argc!=3 ){
    usage("?OPTIONS FILE");
  }
  db_must_be_within_tree();
  
  zFile = mprintf("%/", g.argv[g.argc-1]);

  file_tree_name(zFile, &fname, 1);