FreeBSD/contrib/subversion/subversion/libsvn_client/diff.c
/* Generate a label for the diff output for file PATH at revision REVNUM.
   If REVNUM is invalid then it is assumed to be the current working
   copy.  Assumes the paths are already in the desired style (local
   vs internal).  Allocate the label in POOL. */
Generate a label for the diff output for file PATH at revision REVNUM.
If REVNUM is invalid then it is assumed to be the current working
copy.  Assumes the paths are already in the desired style (local
vs internal).  Allocate the label in POOL.
Generate a label for the diff output for file PATH at revision REVNUM . If REVNUM is invalid then it is assumed to be the current working copy . Assumes the paths are already in the desired style ( local vs internal ) . Allocate the label in POOL .
static const char *
diff_label(const char *path,
           svn_revnum_t revnum,
           apr_pool_t *pool)
{
  const char *label;
  if (revnum >= 0)
    label = apr_psprintf(pool, _("%s\t(revision %ld)"), path, revnum);
  else if (revnum == DIFF_REVNUM_NONEXISTENT)
    label = apr_psprintf(pool, _("%s\t(nonexistent)"), path);
  else 
    label = apr_psprintf(pool, _("%s\t(working copy)"), path);
  return label;
}
static const char * diff_label ( const char * path , svn_revnum_t revnum , apr_pool_t * pool ) { const char * label ; if ( revnum >= 0 ) label = apr_psprintf ( pool , _ ( " \t " ) , path , revnum ) ; else if ( revnum == DIFF_REVNUM_NONEXISTENT ) label = apr_psprintf ( pool , _ ( " \t " ) , path ) ; else label = apr_psprintf ( pool , _ ( " \t " ) , path ) ; return label ; }
Generate a label for the diff output for file PATH at revision REVNUM.
Generate a label for the diff output for file PATH at revision REVNUM .
/* SVN_INVALID_REVNUM */