Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3076

Shell return codes for command line

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.x
    • Fix Version/s: 1.6.0
    • Component/s: cmdline client
    • Labels:
      None
    • Environment:

      Windows XP

      Description

      I would like to react in a DOS script (also bash would be nice - but not tested
      yet) in the following way:
      
      svn --non-interactive info svn://host/path/dir (or file)
      if ERRORLEVEL 1 echo "not found"
      
      so when the url/path exists return value to the shell should be 0 - when it is
      not found it should be 1
      The same would be interesting for testing properties and maybe for other actions
      (for example failure of mkdir - not tested yet).
      

      Original issue reported by powerstat

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              subversion-importer Subversion Importer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: