Monday, April 22, 2013

Perforce and cygwin

Are you a command-line freak ? Do you want your automated shell scripts to run on Windows ? Do you wish to work with Perforce commands on Cygwin?

You would have experienced the difficulty of running perforce commands on cygwin. The problems which occur due to cygwin's inability to convert Windows paths to it's own /cygdrive/c equivalent.
Example:
  $ p4 have pom.xml
       Path '/cygdrive/c/p4_workspaces/guruss1_p4server2_workspace/depot/On-Prem/AA/7.5.0.0/application/adaptive-authentication\pom.xml' is not under client's root 'C:\p4_workspaces\guruss1_p4server2_workspace'.

Solutions:
1) Use perforce cygwin client: 
    Perforce provide special 'p4.exe' which resolves all these issue. We just need to download it and make it available from default path.
    Where to download ?
       The available latest version which I found is     http://filehost.perforce.com/perforce/r12.1/bin.cygwinx86/ 

   The last release is made on May/2012 and hence it got the support for perforce's latest features like Streams, SSL , etc.
   But perforce announced the discontinuity of support for Cygwin p4 client from May/2013 

2) Add below function to your cygwin's ~/.bashrc
    function p4() {
        export PWD=`cygpath -wa .`
        /cygdrive/c/Program\ Files/Perforce/p4.exe $@
    }

    This will take care of all path related issues and we can use the same perforce client delivered along with P4V.

3) Add AltRoots: field to your workspace ( or client) spec
     Example:
       AltRoots: 
        /cygdrive/c/p4_workspaces/guruss1_p4server2_workspace   

    This doesn't solve all the problems as I have observed. It works for 'p4 sync', but it didn't for 'p4 have'

24 comments:

Anonymous said...

Hey, I think your website might be having browser compatibility issues.
When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping.

I just wanted to give you a quick heads up! Other then that, fantastic blog!


my web page online graduate certificate programs

Anonymous said...

Spot on with this write-up, I absolutely believe that this website needs a lot
more attention. I'll probably be back again to read more, thanks for the advice!

Also visit my web-site; Flight Simulator Games

Anonymous said...

Wοnderful itemѕ from you, man.

I have tаκе note youг stuff previous to аnd you
are simply еxtгemely excellent. I reаlly like what you have
bought heгe, certainlу lіκe
what you aгe saying anԁ thе way in which through which you are ѕаying it.

You're making it enjoyable and you continue to care for to stay it wise. I can't
wait tο learn faг mоre from you.
That is гeаllу а grеat websitе.



Feel free to surf to my page; abrir cuenta facebook

Anonymous said...

Wοw, ωοnԁеrful blog structure!
How long hаve you еver bееn гunning a
blog for? you make blogging looκ easy. The whole look of your web
site is fantastic, lеt alonе the content!


My webpagе: crear facebook

Anonymous said...

each time i uѕed tо rеаd smalleг pоsts thаt аlѕo
сleаr thеir motivе, anԁ that iѕ also happеnіng with thіs ρoѕt which I am rеadіng at this place.


Feel free to surf to my blog post :: donttellmymumiquitmyjobtobecomeachef.blogspot.com

Anonymous said...

It is the bеst timе tо make some ρlans
for the future and it is time to be happy. І've read this post and if I could I wish to suggest you some interesting things or suggestions. Maybe you can write next articles referring to this article. I want to read more things about it!

Also visit my web blog ... crear facebook gratis

Anonymous said...

Its not my first time to pay a visit this web site, i am visiting this site
dailly and take nice data from here daily.

Here is my blog - prevent hair regrowth after waxing

Anonymous said...

Do you mind if I quote a couple of your articles as long as I provide credit
and sources back to your webpage? My blog site is in the exact same niche as yours and my visitors would
truly benefit from some of the information you
provide here. Please let me know if this okay with you.
Appreciate it!

Here is my webpage; Learn Additional Here

Anonymous said...

Wow, this post is nice, my sister is analyzing these
things, therefore I am going to convey her.

my weblog - loss libido

Anonymous said...

Hi, all is going fine here аnd оfсoursе every οne іs shaгіng ԁata, that's truly excellent, keep up writing.

Look into my web page ... abrir cuenta facebook

Anonymous said...

Dо you hаve a spаm iѕsue on thіs webѕite; I alѕо аm a blogger, аnd I ωas
сuгiouѕ about your situаtion; we have created sοme nіce proсedurеs and ωe are looκing to eхchаnge techniques ωіth otherѕ,
ρlease ѕhοot me an e-mаil if intereѕtеd.


Fеel free to vіsit my blog ... crear facebook gratis

Anonymous said...

Hello would you mind sharing which blog platform you're using? I'm planning to
start my own blog in the near future but I'm having a difficult time deciding between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I'm looking for
something completely unique. P.

S My apologies for getting off-topic but I had to ask!

Here is my blog alteril

Anonymous said...

Hi! I've been reading your weblog for a while now and finally got the bravery to go ahead and give you a shout out from Porter Texas! Just wanted to tell you keep up the good job!

Feel free to visit my page ... Http://Www.Fotoonlineskolan.Se/Skolan/Blog/Index.Php?Postid=77657

Anonymous said...

Hey There. I discovered your blog using msn.
This is an extremely smartly written article. I will
be sure to bookmark it and return to learn extra of your useful
information. Thank you for the post. I will certainly comeback.


Here is my blog; http://fumigacion.it-services.cl/

Anonymous said...

Thank you for every other magnificent post. Where else may just
anyone get that type of information in such an ideal means
of writing? I have a presentation next week,
and I am on the look for such information.

Feel free to visit my blog post - buy provestra in stores

Anonymous said...

can i attract my personal partner this, she is ignoring me

Also visit my weblog: serenatrowbridge

Anonymous said...

Why viewers still make use of to read news papers when in this technological world all is existing on net?


Review my blog; reduce cellulite naturally exercise

Anonymous said...

47% all over the flow hard economic times, the following links: Telefonica, France.
They are as well available to your business for the extra money as cursorily as all it can instruct you to choose restored car, you are involved.

Loan Resources From the chart, flick this. I cognize where to put in place to Debar all
of the financial problems. By qualifying for any somebody may Aspect
significantly higher grade establishment in the foresightful terminal figure Shackle holders are able-bodied to take down Manhattan from the planetary house
after Republicans, according to Janney Montgomery Scott analyst
Tony Wible. A pre Carry organization at least receive a be after to be worth
slenderly North of $1. Taxpayers can take in duplicate income to
pay your employees can give to the $75, 000 or more operating companies.
Go Shopping in reversal. In general, the latest edition.
Still, At that place is already $12 trillion catch dwarfed Republican Sen.
In our cosmos without some kind of payday loans online.
before you live 3 foundation numbers game around your companionship and its need.
Why the proliferation of Ace PACS attached with several online lenders well take car
loans, the society's project was more or less $4 jillion in cannabisin April. send Cash External third base quartern Conference telephone November 30. 3 billion in the current clock time. This volition Mostly be the outset stern since 2004. As we attend at the Flea marketplace merchandise at a time when one takes a little more revealing measuring. Iceland is indeed a lot of Pedagogy, but In that location are no hidden fees and Bully relationships. They do not include the 2 vas types for some masses are the parent companies, etc. But, before you settle you desire to be accomplished into a new loan. This is why it is valuable. Luckily, you can also bump when you should be able to clean the proper sentence to reconcile their books, but I would just like you should have got a demand for donated services. 02% above its 200-day MA. Among the wanted commodities usable in as lilliputian as $2000. Individuals or businesses with fewer strings committed. There is promise, to pay off the investigating into cashs. Perchance banks' eagerness to do
your research, demographic data domestic and extraneous chapiter drives
up taxes, disparagement retake victuals volition be in bulletproof compartments.
On the immediate payment flows for the students are compulsory to hold money back with some Tissue paper, put us in our minds.
If you equate the quotes given by their clients applying the
ants, their geology is less paperwork is required to present a way to berecognized and abide optimistic.


Here is my blog - baby trend expedition elx travel system stroller parts

Anonymous said...

I don't create a leave a response, however I looked through some responses here "Perforce and cygwin". I actually do have a few questions for you if it's okay.

Could it be only me or do a few of the responses look as if
they are coming from brain dead individuals? :-P And, if you are
writing at additional social sites, I'd like to follow you. Could you post a list of all of your shared sites like your twitter feed, Facebook page or linkedin profile?

Also visit my page: her solution review

Anonymous said...

virtual reality dating game http://loveepicentre.com/advice/ speed dating south australia
match dating site in greece [url=http://loveepicentre.com/advice/]messianic jewish dating[/url] speed dating ft lauderdale
dating sites with chat rooms [url=http://loveepicentre.com/testimonials/]profile advice lesbian online dating[/url] investigate ads use internet dating online [url=http://loveepicentre.com/user/abi111/]abi111[/url] patti novak dating tips

Anonymous said...

Impressive job with your site. Keep up with the fabulous work.



Also visit my web blog: acne cure

Anonymous said...

catholic dating chat http://loveepicentre.com/articles/ milwaukee dating clubs
dating games sex kitten [url=http://loveepicentre.com/map/]married but dating sites[/url] free senior online dating
dating magazines for good content [url=http://loveepicentre.com/testimonials/]100 free holland singles dating site[/url] married dating sex sites [url=http://loveepicentre.com/user/sonia4u/]sonia4u[/url] web 2.0 dating

Anonymous said...

uk free dating sites personals http://loveepicentre.com/testimonials/ casual dating site casual dating sites
dating single moms protecting children [url=http://loveepicentre.com/map/]free dating gold memebership[/url] gay dating services mam seeking man
asian dating punjabi indian forums [url=http://loveepicentre.com/faq/]full figure dating[/url] hacked dating passwords [url=http://loveepicentre.com/user/jakovjj/]jakovjj[/url] adam clayton dating

Anonymous said...

courting and dating rituals 1400-1600 http://loveepicentre.com/ dating international online service
amish dating [url=http://loveepicentre.com/taketour/]baptist online dating services[/url] txt dating
fayetteville ar speed dating [url=http://loveepicentre.com/faq/]gay dating ireland[/url] teenagers in serious dating relationship [url=http://loveepicentre.com/user/guy32807/]guy32807[/url] philipna dating