BinaryJared Posted August 21, 2020 Report Share Posted August 21, 2020 Hey! We're working on a large project and need the ability to have an ongoing repository with finalised content, constructed from specific folders in other repositories. Here is an example use case: We have a Character Art repository, in which we have a folder called Game Ready. The Game Ready folder should go into the Project/Art/Characters folder in our other repository, ideally whenever the content is pushed in the main branch of the Character Art repository. Is there a best practice for this? XLinks appear to do the job, but require pointing to specific changesets - is there a way to make this always point to the latest changeset (and fetch content accordingly)? Thanks, Jared Link to comment Share on other sites More sharing options...
BinaryJared Posted August 21, 2020 Author Report Share Posted August 21, 2020 Also having issues with creating a partial XLink for testing (if this is the intended method) C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:3@"Contingent - Character Art" Error: Object reference not set to an instance of an object. C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:3@"Contingent - Character Art" Error: Object reference not set to an instance of an object. C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:3@Contingent - Character Art The specified changeset 3 does not exist. C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" main@Contingent - Character Art The specified label main does not exist. C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:4@CONT-CharacterArt Error: Object reference not set to an instance of an object. C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:4@CONT-CharacterArt Error: Object reference not set to an instance of an object. C:\Users\binar\wkspaces\Contingent - Combined>cm xlink "/Assets/Project/Art/Characters" "/Game Ready/" cs:4@CONT-CharacterArt Any help would be much appreciated! Link to comment Share on other sites More sharing options...
calbzam Posted September 1, 2020 Report Share Posted September 1, 2020 Hi, Quote Is there a best practice for this? XLinks appear to do the job, but require pointing to specific changesets - is there a way to make this always point to the latest changeset (and fetch content accordingly)? - If you modify the Xlinks always from the parent repo, the Xlink target will be always pointing to the last changeset of the branch. - In order to create a partial XLink the format is the followoing: cm xlink component1Src /src/dll cs:478@mylibrary Where "/src/dll" is the subdirectory where the partial XLink will be mounted. In your scenario, what is the: - Repo name - The directory in the project repository that will point to the mounted - The subdirectory where the partial XLink will be mounted. Regards, Carlos. 1 Link to comment Share on other sites More sharing options...
BinaryJared Posted September 1, 2020 Author Report Share Posted September 1, 2020 Hi Carlos, The repo is 'CONT - Character Art', the directory in that repo is '/Game Ready/' and the target subdirectory is '/Assets/Project/Art/Characters' Thanks, Jared Link to comment Share on other sites More sharing options...
calbzam Posted September 2, 2020 Report Share Posted September 2, 2020 Hi, I was able to do it running the following command: C:\Users\carlos\wkspaces\mywks\Assets\Project\Art>cm xlink Characters "Game_Ready" "cs:1@CONT - Character Art" C:\Users\carlos\wkspaces\mywks\Assets\Project\Art\Characters --> xlink:Characters:Game_Ready@1@CONT - Character Art@localhost:8087 Note that my console is pointing to the specific folder where I want to create the Xlink. Regards, Carlos. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now