Jump to content


remapping the root of a virtual stream.

remapping

  • Please log in to reply
4 replies to this topic

#1 adams_s

adams_s

    Member

  • Members
  • PipPip
  • 11 posts

Posted 11 March 2020 - 04:31 PM

In reference to these posts
https://forums.perfo...f-child-stream/
https://forums.perfo...folder-to-root/

I need to remap my workspace so the files in the root of that workspace are the contents of some folder

Paths:
share some/folder

Remapped:
some/folder/... ...

As has already been reported, this gives the error
Error in stream specification Leading wildcards (*,...) not in allowed in path '...'

The suggested work around was

Paths:
Share Source/...

Remapped:
Source/... DevGreat/...

but I'm afraid I don't understand this, using this approach I'll still end up with a folder called Devgreat in my workspace, and /some/folder's content will be placed inside that folder, instead of being the root content of the workspace. Is it at all possible to turn an arbitrary folder into the workspace root?

Thanks.

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1084 posts

Posted 11 March 2020 - 08:52 PM

The workaround of "./..." seems like the best bet, as described in this post: https://forums.perfo...eam/#entry14642

Either that or create your client root one folder higher and then remap to the folder you actually want the files in...

#3 adams_s

adams_s

    Member

  • Members
  • PipPip
  • 11 posts

Posted 12 March 2020 - 09:31 AM

View PostSambwise, on 11 March 2020 - 08:52 PM, said:

The workaround of "./..." seems like the best bet, as described in this post: https://forums.perfo...eam/#entry14642

Either that or create your client root one folder higher and then remap to the folder you actually want the files in...

Yeah, I really hoped the "./..." approach would help, but it breaks my Unreal project. The whole problem is that Unreal Gamesync wants specific content in the root of a workspace, and if we're going to use virtual streams we need to figure out how to do this cleanly. If I try "./..." Gamesync complains about the extra dot in workspace paths.

I guess this is more of an Unreal problem than a Perforce one, was just hoping I could fix it here. Thanks for the help though.

#4 adams_s

adams_s

    Member

  • Members
  • PipPip
  • 11 posts

Posted 27 March 2020 - 07:53 PM

Yes, it turns out you can map files to the root of a workspace - use import *

In virtual stream paths add

import * //acmegamecompany/stable/somefolder/*

This causes the contents of somefolder to be placed in the workspace root.

#5 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1084 posts

Posted 27 March 2020 - 08:58 PM

Note that when you do that import trick, you're getting the contents of the depot folder irrespective of the parent stream's mappings (e.g. you won't inherit the parent's imports and/or exclusions).  In many cases there's no practical difference, though.





Also tagged with one or more of these keywords: remapping

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users