+ Reply to Thread
Results 1 to 8 of 8

help PERFORCE: how to add a directory recursively to perforce depot

  1. help PERFORCE: how to add a directory recursively to perforce depot

    It looks 'p4 add' can not recursively add files.



  2. Re: help PERFORCE: how to add a directory recursively to perforcedepot

    Using the gui you can drag a directory to the
    change list area and it will add the tree.

    Perforce doesn't understand directories so the
    native add command couldn't be recursive.

    The standard answer would be to create a wrapper
    script, which should be pretty easy.

    IMHO, perforce clearly should understand
    directories because developers work extensively
    with directories. Having the gui understand them
    yet not the command line, is inconsistent.

    Frank Leung wrote:
    > It looks 'p4 add' can not recursively add files.
    >
    >


  3. Re: help PERFORCE: how to add a directory recursively to perforce depot

    In article ,
    Frank Leung wrote:
    >It looks 'p4 add' can not recursively add files.


    No, but you can provide a list to p4 add with the -x option to p4.

    http://www.perforce.com/perforce/technotes/note012.html

    mrc
    --
    Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/
    We are all of us living in the shadow of Manhattan. -- Watchmen
    fatal ("You are in a maze of twisty compiler features, all different"); -- gcc

  4. Re: help PERFORCE: how to add a directory recursively to perforce depot

    "Frank Leung" wrote in message
    news:btb3ir$q81@netnews.proxy.lucent.com...
    > It looks 'p4 add' can not recursively add files.


    From the Perforce FAQ:
    (http://www.perforce.com/perforce/technotes/note012.html)

    Unix:
    find . -type f -print | p4 -x - add

    Windows:
    dir /b /s /a-d | p4 -x - add

    Mac:
    files -f -q -r -s | p4 -x - add

    Or, drag and drop the directory in the gui. -Wm





  5. Re: help PERFORCE: how to add a directory recursively to perforce depot

    "thoff" wrote in message
    news:vvisklted5np96@news.supernews.com...
    > Using the gui you can drag a directory to the
    > change list area and it will add the tree.
    >
    > Perforce doesn't understand directories so the
    > native add command couldn't be recursive.


    The Peforce recursive wild card is '...' but that assumes the files are on
    the server and if you are adding files, they aren't on the server, right?
    'p4 add *' works for files in a single directory because the * is expanded
    by the command shell. 'p4 add "*"' would have the same problem as ...
    because the * would be passed for the server to expand and it can't.

    Works with the gui because dragging and dropping provides a file
    list to the gui. -Wm




  6. Re: help PERFORCE: how to add a directory recursively to perforce depot

    In Unix (or the windows command line), just do:

    find . -type f | p4 -x - add

    Make sure you're in the correct directory so that
    the new pathname is what you want.

    Jack Stanley
    IT Consultant,
    Covad Communications


    thoff wrote in message news:...
    > Using the gui you can drag a directory to the
    > change list area and it will add the tree.
    >
    > Perforce doesn't understand directories so the
    > native add command couldn't be recursive.
    >
    > The standard answer would be to create a wrapper
    > script, which should be pretty easy.
    >
    > IMHO, perforce clearly should understand
    > directories because developers work extensively
    > with directories. Having the gui understand them
    > yet not the command line, is inconsistent.
    >
    > Frank Leung wrote:
    > > It looks 'p4 add' can not recursively add files.
    > >
    > >


  7. Re: help PERFORCE: how to add a directory recursively to perforce depot

    jack@stanleyfamily.us (motojack) wrote in message news:<181c6ad7.0401051310.3c38c32f@posting.google.com>...
    > In Unix (or the windows command line), just do:
    >
    > find . -type f | p4 -x - add


    Pardon? In the *Windows* command line? Uh, sure.

    FIND: Parameter format not correct.

  8. Re: help PERFORCE: how to add a directory recursively to perforce depot

    kaz@ashi.footprints.net (Kaz Kylheku) wrote in
    news:cf333042.0401070825.4e11771e@posting.google.com:

    > jack@stanleyfamily.us (motojack) wrote in message
    > news:<181c6ad7.0401051310.3c38c32f@posting.google.com>...
    >> In Unix (or the windows command line), just do:
    >>
    >> find . -type f | p4 -x - add

    >
    > Pardon? In the *Windows* command line? Uh, sure.
    >
    > FIND: Parameter format not correct.
    >


    Windows version of above command is:

    dir /b/s/a-d | p4 -x - add

    See "dir /?" for explanation of params (and experiment).

    --
    Robert Cowham


+ Reply to Thread