当前位置: 首页 > news >正文

[p4] Uncheckout other user‘s file?

[p4] Uncheckout other user's file?

https://perforce-user.perforce.narkive.com/fbzrtGh1/p4-uncheckout-other-user-s-file

perforce-user@perforce.com

 

Discussion:

[p4] Uncheckout other user's file?

(too old to reply)

Jeff Jensen

15 years ago

Permalink

Hi,

I've been hunting for this answer for an hour, and just can't determine how to
do so. How can I revert another user's checkout, as an admin? Just one of the
many files in the other user's default changelist.

<gasp>feeling dumb about asking....</gasp>

Jeff Grills

15 years ago

Permalink

You'll have to impersonate the perforce user and client to do the revert,
which may possibly require you to reset their password. I dislike this as
well, and have asked perforce to allow supers to revert files on other
clients.

j


-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com] On Behalf Of Jeff Jensen
Sent: Thursday, December 01, 2005 6:15 PM
To: perforce-***@perforce.com
Subject: [p4] Uncheckout other user's file?


Hi,

I've been hunting for this answer for an hour, and just can't determine how
to do so. How can I revert another user's checkout, as an admin? Just one
of the many files in the other user's default changelist.

<gasp>feeling dumb about asking....</gasp>

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

 

 

 

 

 

 

Read More

Jeff Jensen

15 years ago

Permalink

Thanks for the fast reply!

I just found the solution:

1) I changed the other user's workspace's host field to nothing (to allow me to
use it from my machine).

2) I used the -c on p4 command to specify to use the other user's workspace
along with the revert command:
p4 -c otherworkspacename revert //thefilename

:-)

...

William Yan

15 years ago

Permalink

it works only if the client is not locked.

-William

...

William Yan

15 years ago

Permalink

it works only if the client is not locked, which is default client setting.

-William

...

Jeff Grills

15 years ago

Permalink

Ah, that makes sense. You really don't need to be that user, you just have
to use the right client.

j

-----Original Message-----
From: Jeff Jensen [mailto:***@upstairstechnology.com]
Sent: Thursday, December 01, 2005 6:44 PM
To: Jeff Grills
Cc: perforce-***@perforce.com
Subject: RE: [p4] Uncheckout other user's file?


Thanks for the fast reply!

I just found the solution:

1) I changed the other user's workspace's host field to nothing (to allow me
to use it from my machine).

2) I used the -c on p4 command to specify to use the other user's workspace
along with the revert command:
p4 -c otherworkspacename revert //thefilename

:-)

...

Tetlow, Gordon

15 years ago

Permalink

If you are running a recent server, super users can login as other
users, so you could do something like:
$ p4 login luser
$ p4 -u luser -H hostname -c clientname revert //clientname/...
$ p4 -u luser logout

-gordon

...

Wright, Richard

15 years ago

Permalink

Of course, depending on one's needs, the other way is to simply delete the
user's client spec.

This is my preferred method for reverting files of users who have left the
company, but probably not ideal for other situations.

-Rick

-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com]On Behalf Of Jeff Grills
Sent: Thursday, December 01, 2005 4:21 PM
To: 'Jeff Jensen'; perforce-***@perforce.com
Subject: Re: [p4] Uncheckout other user's file?



You'll have to impersonate the perforce user and client to do the revert,
which may possibly require you to reset their password. I dislike this as
well, and have asked perforce to allow supers to revert files on other
clients.

j


-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com] On Behalf Of Jeff Jensen
Sent: Thursday, December 01, 2005 6:15 PM
To: perforce-***@perforce.com
Subject: [p4] Uncheckout other user's file?


Hi,

I've been hunting for this answer for an hour, and just can't determine how
to do so. How can I revert another user's checkout, as an admin? Just one
of the many files in the other user's default changelist.

<gasp>feeling dumb about asking....</gasp>

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


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

David Siefert

15 years ago

Permalink

You can revert all files on another users checkout by deleting their client spec (p4 client -d -f <clientspec>).


-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com]On Behalf Of Jeff Jensen
Sent: Thursday, December 01, 2005 7:15 PM
To: perforce-***@perforce.com
Subject: [p4] Uncheckout other user's file?


Hi,

I've been hunting for this answer for an hour, and just can't determine how to
do so. How can I revert another user's checkout, as an admin? Just one of the
many files in the other user's default changelist.

<gasp>feeling dumb about asking....</gasp>

_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 11/30/2005

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 11/30/2005

Russell C. Jackson

15 years ago

Permalink

If you use the login command under your own account, you can then use login
to login as another user, and it will do so since you are the super user,
and will not ask for their password.

So, you would do something like this:

p4 login
Enter your password.
p4 login username
Set P4USER=username
Run commands as username

Thanks,
Rusty
--------------------------------------------------------
RCJackson Consulting
Perforce Consulting Partner and Certified Trainer
--------------------------------------------------------
Russell C. Jackson
211 River Oaks Lane
Russellville, AR 72802
--------------------------------------------------------
***@rcjacksonconsulting.com
http://public.perforce.com/guest/russell_jackson/pcp.html
tel: 479-696-9710
fax: 479-967-2308
mobile: 479-747-3845
--------------------------------------------------------

-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com] On Behalf Of Jeff Grills
Sent: Thursday, December 01, 2005 6:21 PM
To: 'Jeff Jensen'; perforce-***@perforce.com
Subject: Re: [p4] Uncheckout other user's file?


You'll have to impersonate the perforce user and client to do the revert,
which may possibly require you to reset their password. I dislike this as
well, and have asked perforce to allow supers to revert files on other
clients.

j


-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com] On Behalf Of Jeff Jensen
Sent: Thursday, December 01, 2005 6:15 PM
To: perforce-***@perforce.com
Subject: [p4] Uncheckout other user's file?


Hi,

I've been hunting for this answer for an hour, and just can't determine how
to do so. How can I revert another user's checkout, as an admin? Just one
of the many files in the other user's default changelist.

<gasp>feeling dumb about asking....</gasp>

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


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

Jeff Jensen

15 years ago

Permalink

True, and then using "-f" to change the other user's workspace would solve
that problem, as an admin.


-----Original Message-----
From: William Yan [mailto:***@gmail.com]
Sent: Friday, December 02, 2005 12:35 AM
To: Jeff Jensen
Cc: Jeff Grills; perforce-***@perforce.com
Subject: Re: [p4] Uncheckout other user's file?

it works only if the client is not locked, which is default client setting.

-William

...

changelist.
Post by Jeff Jensen

Post by Jeff Grills
<gasp>feeling dumb about asking....</gasp>
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user

Albrecht, Matt

15 years ago

Permalink

Another small caveat with this that I stumbled upon. If that other
user's client has the root directory set to a read-only or non-existent
location, the revert will fail.

That is, my Windows machine has only C: as a hard drive, and D: as the
CD-ROM. I was trying to revert a client's file which had the root dir
setup to D:\workspace, and the revert couldn't happen. I ended up doing
this:
$ p4 client -o usersClient > usersClient.spec
$ p4 client -f usersClient
(change the root dir)
$ p4 revert (all the wonderful options for looking like the other
user) //filespec
$ p4 client -f -i < usersClient.spec

I have no idea what behavior you'll see if the other client is on a
different platform than your own (Windows vs. Unix vs. Mac)

...

Continue reading on narkive:

SEARCH RESULTS FOR '[P4] UNCHECKOUT OTHER USER'S FILE?' (NEWSGROUPS AND MAILING LISTS)

120

replies[p4] Perforce vs. Clear Case

started 20 years ago

perforce-user@perforce.com

26

repliesGetting started with a content filter

started 10 years ago

 

 

 

 

 

相关文章:

  • UE4热更新:需求分析与方案设计
  • android studio无法连接小米手机问题解决
  • (最完美)小米手机6X的Usb调试模式在哪里打开的流程
  • Android Studio Profiler Memory (内存分析工具)的简单使用及问题分析
  • Android平台上的Native内存分析
  • Unity 通过解析libil2cpp.so文件查看Android Crash崩溃原因
  • Android native memory leak detect (Android native内存泄露检测)
  • Android死锁初探
  • Unity Profile 自己使用
  • iOS性能分析-Xcode Instruments Allocations 分析APP内存使用情况
  • UE 手游在 iOS 平台运行时内存占用太高?试试这样着手优化
  • UE4 Sequence学习笔记
  • UE4中的相机操控方案
  • 对ue4 sequence的学习和理解
  • [gdc19]《战神4》中的全局光照技术
  • SegmentFault for Android 3.0 发布
  • 收藏网友的 源程序下载网
  • 【技术性】Search知识
  • express如何解决request entity too large问题
  • JavaScript 奇技淫巧
  • JavaScript 是如何工作的:WebRTC 和对等网络的机制!
  • Laravel5.4 Queues队列学习
  • Magento 1.x 中文订单打印乱码
  • Redux 中间件分析
  • Webpack 4 学习01(基础配置)
  • 爱情 北京女病人
  • 从0搭建SpringBoot的HelloWorld -- Java版本
  • 前言-如何学习区块链
  • 浅谈Kotlin实战篇之自定义View图片圆角简单应用(一)
  • 嵌入式文件系统
  • - 转 Ext2.0 form使用实例
  • 继 XDL 之后,阿里妈妈开源大规模分布式图表征学习框架 Euler ...
  • 小白应该如何快速入门阿里云服务器,新手使用ECS的方法 ...
  • ​【原创】基于SSM的酒店预约管理系统(酒店管理系统毕业设计)
  • ​TypeScript都不会用,也敢说会前端?
  • ​第20课 在Android Native开发中加入新的C++类
  • ​猴子吃桃问题:每天都吃了前一天剩下的一半多一个。
  • #pragma multi_compile #pragma shader_feature
  • $.proxy和$.extend
  • (Repost) Getting Genode with TrustZone on the i.MX
  • (WSI分类)WSI分类文献小综述 2024
  • (二)Linux——Linux常用指令
  • (附源码)ssm跨平台教学系统 毕业设计 280843
  • (蓝桥杯每日一题)love
  • (利用IDEA+Maven)定制属于自己的jar包
  • (转)http协议
  • .NET NPOI导出Excel详解
  • .NET/C# 阻止屏幕关闭,阻止系统进入睡眠状态
  • .NETCORE 开发登录接口MFA谷歌多因子身份验证
  • .NET开源全面方便的第三方登录组件集合 - MrHuo.OAuth
  • .Net转Java自学之路—基础巩固篇十三(集合)
  • .net最好用的JSON类Newtonsoft.Json获取多级数据SelectToken
  • @EnableConfigurationProperties注解使用
  • [ CTF ] WriteUp- 2022年第三届“网鼎杯”网络安全大赛(朱雀组)
  • [android] 切换界面的通用处理