Ability to monitor a single file in materials list

Comments

5 comments

  • Avatar
    Shilpa Goley

    Hi,


    Subversion does not allow the 'svn update' command (which is used by Go ) to be run on a single file url. It throws up the svn exception which you see in the log.


    Two workarounds are possible to achieve what you intend:


    1. Check in only this file in a directory and give the url of that dir as the material.


    or


    2. Filter out all files other than this one, if you do not care about those in this particular pipeline.


    Regards

    0
    Comment actions Permalink
  • Avatar
    Manoj

    "Subversion does not allow the 'svn update' command (which is used by Go ) to be run on a single file url"


    svn update can be run on a file. It is only svn checkout that cannot be run on a file.


    If Go wants to support the ability to checkout just a file ( I would like to have it ) a sparse checkout maybe tried:


    svn checkout svn://repo/path/to/dir . --depth empty
    svn up thefileiwanttocheck.out

    0
    Comment actions Permalink
  • Avatar
    LeeBenhart

    Thank you both for your responses.


    I do realize svn does not support this, hence the reason I am exporting the file I want.  It seemed a simpler solution.  I do use the filter in other cases when I do not care if other files changed, but it does not work in this particular case as I only want that one file.

    0
    Comment actions Permalink
  • Avatar
    Anush Ramani

    On a related note, if you are performing a custom svn operation within your scripts, then you may want to set the "fetchMaterials" flag to false (a new feature in Go 2.1). This would tell Go to skip all version control operations and may make you custom checkout jobs faster.

    0
    Comment actions Permalink
  • Avatar
    LeeBenhart

    Thank you Anush, that is a great addition, saves me tons of space and time.

    0
    Comment actions Permalink

Please sign in to leave a comment.