Fossil

Check-in [6f2b5927]
Login

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

Overview
Comment:Cherrypick [1b01c1ad]: Correct comment describing behavior of errCode.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6f2b59270b14600713be269795e811548cfbbac6
User & Date: andygoth 2015-05-02 20:57:29
Context
2015-05-02
21:11
Correct cat command error message on nonexistent file. check-in: 715f8881 user: andygoth tags: trunk
20:57
Cherrypick [1b01c1ad]: Correct comment describing behavior of errCode. check-in: 6f2b5927 user: andygoth tags: trunk
20:52
Correct comment describing behavior of errCode. check-in: 1b01c1ad user: andygoth tags: andygoth-versioned-open
20:21
Cherrypick [ff192614]: Use fossil_strdup() consistent with the rest of the code. check-in: f8315ee9 user: andygoth tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/update.c.

648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
int historical_version_of_file(
  const char *revision,    /* The check-in containing the file */
  const char *file,        /* Full treename of the file */
  Blob *content,           /* Put the content here */
  int *pIsLink,            /* Set to true if file is link. */
  int *pIsExe,             /* Set to true if file is executable */
  int *pIsBin,             /* Set to true if file is binary */
  int errCode              /* Error code if file not found.  Panic if 0. */
){
  Manifest *pManifest;
  ManifestFile *pFile;
  int rid=0;

  if( revision ){
    rid = name_to_typed_rid(revision,"ci");







|







648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
int historical_version_of_file(
  const char *revision,    /* The check-in containing the file */
  const char *file,        /* Full treename of the file */
  Blob *content,           /* Put the content here */
  int *pIsLink,            /* Set to true if file is link. */
  int *pIsExe,             /* Set to true if file is executable */
  int *pIsBin,             /* Set to true if file is binary */
  int errCode              /* Error code if file not found.  Panic if <= 0. */
){
  Manifest *pManifest;
  ManifestFile *pFile;
  int rid=0;

  if( revision ){
    rid = name_to_typed_rid(revision,"ci");