Fossil

Check-in [1b01c1ad]
Login

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

Overview
Comment:Correct comment describing behavior of errCode.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | andygoth-versioned-open
Files: files | file ages | folders
SHA1: 1b01c1ad264e91d1c4958f1ff6b1e3641f0b1d16
User & Date: andygoth 2015-05-02 20:52:31.723
References
2015-05-02
20:57
Cherrypick [1b01c1ad]: Correct comment describing behavior of errCode. ... (check-in: 6f2b5927 user: andygoth tags: trunk)
Context
2015-05-02
20:57
Cherrypick [1b01c1ad]: Correct comment describing behavior of errCode. ... (check-in: 6f2b5927 user: andygoth tags: trunk)
20:54
Avoid panic on opening a repository lacking .fossil-settings/allow-symlinks or .fossil-settings/allow-symlinks.no-warn . Probably want to reconsider the way historical_version_of_file() handles error codes. ... (Closed-Leaf check-in: 90c03442 user: andygoth tags: andygoth-versioned-open)
20:52
Correct comment describing behavior of errCode. ... (check-in: 1b01c1ad user: andygoth tags: andygoth-versioned-open)
20:37
Merge trunk. ... (check-in: 794d4752 user: andygoth tags: andygoth-versioned-open)
Changes
Unified Diff 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");