Discussion:
[p4] editing view in p4 client
Sven Erik Knop
2018-03-21 13:45:05 UTC
Permalink
Which editor did you use? If that is Notepad++, the process forks off and returns immediately instead of waiting for you save.
The recipe for the view should be exactly as you described.

Cheers,

Sven Erik

--

Sven Erik Knop | Principal Solutions Engineer
Perforce Software<http://www.perforce.com>
T: +44 1189 771020<tel:+441189771020> | M: +44 7974 351514<tel:+447974351514>
Visit us on: Twitter<https://twitter.com/perforce> | LinkedIn<https://www.linkedin.com/company/perforce-software> | Facebook<https://www.facebook.com/Perforce>

New code hosting for Git, SVN, and more.
Try Helix TeamHub free today!<http://info.perforce.com/try-perforce-helix-teamhub-free?leadsourcedetail=hth-global-ongoing-wtl-freemium-cloud&leadsource=outlook-direct-email&utm_source=outlook-direct-email&utm_medium=email&utm_campaign=hth-global-ongoing-wtl-freemium-cloud&utm_term=vcs&utm_content=email-signature-link>



On 21 Mar 2018, at 14:25, cgorac <perforce-user-***@forums.perforce.com<mailto:perforce-user-***@forums.perforce.com>> wrote:

Posted on behalf of forum user 'cgorac'.

I have a p4 client setup that I used for while, but now I want to exclude some
large binary files from my workspace. So I run "p4 client" and changed
settings under "View" from:
//depot/main/... //my_ws/...
to:
//depot/main/... //my_ws/...
-//depot/main/foo/... //my_ws/foo/...
where "foo" is sub-directory that contains files that I want to
exclude.

I think this is pretty much exactly the same as suggested in p4 client command
documentation; however, when I save the file in editor, it just says
"Client my_ws not changed", and when I re-run "p4 client"
again, the line that I added is not there any more.

I can change other items in the client spec, for example, I've changed
"Root" earlier, and also for example I can change some of items under
"Options", and then the changed client spec is properly
saved. So I'm not sure what I'm doing wrong with changing the
view?

Thanks.



--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/5663-editing-view-in-p4-client
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com<mailto:perforce-***@perforce.com>
http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/lis
Sven Erik Knop
2018-03-21 14:17:52 UTC
Permalink
Oh yes,

you cannot modify a stream client this way, the view is fixed.

You want to create a virtual stream that excludes your binaries, then point your client workspace to that virtual stream.

Cheers,

Sven Erik

--

Sven Erik Knop | Principal Solutions Engineer
Perforce Software<http://www.perforce.com>
T: +44 1189 771020<tel:+441189771020> | M: +44 7974 351514<tel:+447974351514>
Visit us on: Twitter<https://twitter.com/perforce> | LinkedIn<https://www.linkedin.com/company/perforce-software> | Facebook<https://www.facebook.com/Perforce>

New code hosting for Git, SVN, and more.
Try Helix TeamHub free today!<http://info.perforce.com/try-perforce-helix-teamhub-free?leadsourcedetail=hth-global-ongoing-wtl-freemium-cloud&leadsource=outlook-direct-email&utm_source=outlook-direct-email&utm_medium=email&utm_campaign=hth-global-ongoing-wtl-freemium-cloud&utm_term=vcs&utm_content=email-signature-link>



On 21 Mar 2018, at 15:15, cgorac <perforce-user-***@forums.perforce.com<mailto:perforce-user-***@forums.perforce.com>> wrote:

Posted on behalf of forum user 'cgorac'.



[https://forums.perforce.com/index.php?app=forums&module=forums&section=findpost&pid=23199]
P4Sven, on 2018/03/21 13:50:03 UTC, said:
Which editor did you use? If that is Notepad++, the process forks off and returns immediately instead of waiting for you save.
The recipe for the view should be exactly as you described.

The editor is Emacs, this is on Linux.

Does it matters that it is about a stream actually (I have "Stream:
//depot/main" in my client spec)?



--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/5663-editing-view-in-p4-client
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com<mailto:perforce-***@perforce.com>
http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perf
Sven Erik Knop
2018-03-21 15:21:13 UTC
Permalink
Depends how often you need to do this.

I would create a virtual stream first to map out how my task streams are supposed to look like, then use that as a template for my task, which becomes a simple click.
Only worth doing if you have to create more than one task over time. Otherwise you can just 'exclude' your binary directory in the task stream spec upon creation.

Cheers,

Sven Erik

--

Sven Erik Knop | Principal Solutions Engineer
Perforce Software<http://www.perforce.com>
T: +44 1189 771020<tel:+441189771020> | M: +44 7974 351514<tel:+447974351514>
Visit us on: Twitter<https://twitter.com/perforce> | LinkedIn<https://www.linkedin.com/company/perforce-software> | Facebook<https://www.facebook.com/Perforce>

New code hosting for Git, SVN, and more.
Try Helix TeamHub free today!<http://info.perforce.com/try-perforce-helix-teamhub-free?leadsourcedetail=hth-global-ongoing-wtl-freemium-cloud&leadsource=outlook-direct-email&utm_source=outlook-direct-email&utm_medium=email&utm_campaign=hth-global-ongoing-wtl-freemium-cloud&utm_term=vcs&utm_content=email-signature-link>



On 21 Mar 2018, at 16:15, cgorac <perforce-user-***@forums.perforce.com<mailto:perforce-user-***@forums.perforce.com>> wrote:

Posted on behalf of forum user 'cgorac'.



[https://forums.perforce.com/index.php?app=forums&module=forums&section=findpost&pid=23201]
P4Sven, on 2018/03/21 14:20:03 UTC, said:
Oh yes,
you cannot modify a stream client this way, the view is fixed.
You want to create a virtual stream that excludes your binaries, then point your client workspace to that virtual stream.

Ok, thanks. Can I do the same using task stream instead of virtual
stream, as I actually have to create a task stream here?



--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/5663-editing-view-in-p4-client
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com<mailto:perforce-***@perforce.com>
http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perfor

Continue reading on narkive:
Loading...