[p4] Adding with wildcards

Melissa Kacher mkacher at msn.com
Fri Aug 3 09:08:06 PDT 2007


Why would you add extra layers of complication, failure points, and 
additional work for all of your users to your system when the beauty of 
Perforce is in its simplicity?

----Original Message Follows----
From: "Jon Gamble" <jon.gamble at analex.com>
To: "Vinny Murphy (vmurphy)" <vmurphy at cisco.com>,        "Greg Leach" 
<gregleach at kromestudios.com>,        <perforce-user at perforce.com>
Subject: Re: [p4] Adding with wildcards
Date: Thu, 2 Aug 2007 22:39:14 -0400
MIME-Version: 1.0
Received: from frankenrouter.perforce.com ([67.101.114.82]) by 
bay0-mc11-f22.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 2 
Aug 2007 21:38:17 -0700
Received: from p4tress.perforce.com (localhost [127.0.0.1])by 
frankenrouter.perforce.com (8.13.0.PreAlpha5/8.13.0.PreAlpha5) with ESMTP id 
l734ELFX021330;Thu, 2 Aug 2007 21:14:32 -0700 (PDT)
Received: from waypost.perforce.com ([10.199.0.13])by 
frankenrouter.perforce.com (8.13.0.PreAlpha5/8.13.0.PreAlpha5) withESMTP id 
l732dGAx020341for <perforce-user at perforce.com>; Thu, 2 Aug 2007 19:39:16 
-0700 (PDT)
Received: from node126.hadron.com (HELO 
mmarshal2-svr.ns.analex.com)([208.251.196.126])by waypost.perforce.com with 
ESMTP; 02 Aug 2007 19:39:16 -0700
Received: from ex1-svr.ns.analex.com (Not Verified) 
bymmarshal2-svr.ns.analex.com with MailMarshal (v6, 1, 8, 2172)id 
<B46b295530000>; Thu, 02 Aug 2007 22:39:15 -0400
X-Message-Info: 
LsUYwwHHNt0raOlIHasr1dTUr4yuUAFi0GsIqRE+p4OFm3qkdXRQomW8098d8N64
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgAAAKgxskbQ+8R+iGdsb2JhbACBUWI2iygBAQkEBg8YZg
X-IronPort-AV: i="4.19,215,1183359600"; d="scan'208,217"; 
a="3590893:sNHT47437520"
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [p4] Adding with wildcards
Thread-Index: AcfVbWXX4+NTje8RR4ahe/7DyEmC6AAAqPQAAAF+ZYQ=
References: 
<E7605DFB3A64EE4184E00F36635053A2036FCD1E at xmb-rtp-20e.amer.cisco.com>
X-Content-Filtered-By: Mailman/MimeDel 2.1.6
X-BeenThere: perforce-user at perforce.com
X-Mailman-Version: 2.1.6
Precedence: list
List-Id: Discuss Perforce with other users <perforce-user.perforce.com>
List-Unsubscribe: 
<http://maillist.perforce.com/mailman/listinfo/perforce-user>, 
<mailto:perforce-user-request at perforce.com?subject=unsubscribe>
List-Archive: <http://maillist.perforce.com/pipermail/perforce-user>
List-Post: <mailto:perforce-user at perforce.com>
List-Help: <mailto:perforce-user-request at perforce.com?subject=help>
List-Subscribe: 
<http://maillist.perforce.com/mailman/listinfo/perforce-user>, 
<mailto:perforce-user-request at perforce.com?subject=subscribe>
Errors-To: perforce-user-bounces at perforce.com
Return-Path: perforce-user-bounces at perforce.com
X-OriginalArrivalTime: 03 Aug 2007 04:38:17.0721 (UTC) 
FILETIME=[1CB48690:01C7D588]

At the risk of suggesting the impractical - Greg, you should seriously 
consider looking at Cygwin if you're doing shell stuff on windows.  cmd.exe 
kind of sucks.  Maybe there is a newer Microsoft shell that is better, I 
don't know about recent goings on there.

There is the below and I think the equivalent in cygwin bash would be 
something like p4 add `cygpath -w \`find src\``

-jon

-----Original Message-----
From: perforce-user-bounces at perforce.com on behalf of Vinny Murphy (vmurphy)
Sent: Thu 8/2/2007 8:47 PM
To: Greg Leach; perforce-user at perforce.com
Subject: Re: [p4] Adding with wildcards

Hi Greg,

 >From http://www.perforce.com/perforce/technotes/note012.html you could
do:


C:> cd src
C:> dir /b /s /a-d | p4 -x - add

--
Vinny
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Greg Leach
Sent: Thursday, August 02, 2007 9:22 PM
To: perforce-user at perforce.com
Subject: [p4] Adding with wildcards

I'm trying to add everything under a given directory (recursively), but
the only wildcard that I know that does recursive operations is "...",
and that only seems to work on what is already in perforce.  "*" works
on local files, but isn't recursive.  Are there any wildcards that will
let me what I want?

eg.
I have a directory structure:

d:\src\trunk
d:\src\trunk\subdir\file1.txt
d:\src\trunk\anotherdir\file2.txt

And I want to do something like:
p4 add d:\src\...


Thanks,
-Greg



This message and its attachments may contain legally privileged or
confidential information. This message is intended for the use of the
individual or entity to which it is addressed. If you are not the
addressee indicated in this message, or the employee or agent
responsible for delivering the message to the intended recipient, you
may not copy or deliver this message or its attachments to anyone.
Rather, you should permanently delete this message and its attachments
and kindly notify the sender by reply e-mail. Any content of this
message and its attachments, which does not relate to the official
business of the sending company must be taken not to have been sent or
endorsed by the sending company or any of its related entities. No
warranty is made that the e-mail or attachment(s) are free from computer
virus or other defect.
_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user

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


CONFIDENTIALITY NOTE:  This transmission is intended solely for the use of 
the individual(s) to whom it is addressed and may contain information that 
is privileged, confidential, or otherwise exempt from disclosure under 
applicable law.  If the reader of this message is not the intended 
recipient, or an authorized representative of the intended recipient, you 
are hereby notified that any review, retransmission, dissemination, 
distribution, copying of or taking of any action in reliance upon this 
communication is strictly prohibited.  If you have received this 
communication in error, please delete it from your system without copying or 
forwarding it, and notify the sender of the error by reply e-mail.
_______________________________________________
perforce-user mailing list  -  perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user




More information about the perforce-user mailing list