Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: Learning How to Use CVS for Personal Perl Coding Practices

by Rhose (Priest)
on Nov 03, 2005 at 16:30 UTC ( #505424=note: print w/replies, xml ) Need Help??

in reply to Re^2: Learning How to Use CVS for Personal Perl Coding Practices
in thread Learning How to Use CVS for Personal Perl Coding Practices

Import (like commit) needs a log message. I'd use the -m switch on the import. (Although you can define the editor and enter the log message using it.)

svn import . file:///~/subversion -m "Initial import"

Replies are listed 'Best First'.
Re^4: Learning How to Use CVS for Personal Perl Coding Practices
by neversaint (Deacon) on Nov 03, 2005 at 16:37 UTC
    Hi Rhose,

    I tried this:
    svn import . file:///~/subversion/Project1 -m "Initial import"
    But it gave:
    svn: Unrecognized URL scheme 'file:///~/subversion/Project1'

    neversaint and everlastingly indebted.......

      Yeah, you need to give the full path, e.g.

      svn import . file:///home/neversaint/subversion/Project1 -m "Initial i +mport"
      Regarding the $EDITOR variable, you should set that to your favourite editor
      export EDITOR=/usr/bin/emacs
      export EDITOR=/usr/bin/vi
      then you can specify the subversion commands without the -m and have it call the editor for manual message entry automatically if you prefer. Add the line to .bashrc to have it done for you automatically when you log in.

      Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan
      I have no experience using file: as I work with the daemon. However, I ran a quick test on another machine, and this worked.

      cd /home/rhose/tmp svnadmin create demo cd samples svn import . file:///home/rhose/tmp/demo -m "Initial import"

      I tried it as:

      svn import . file:///~/tmp/demo -m "Initial import"

      and I got the same error you are getting... looks like you need to specify the path to your home directory.


      Yeah, what tirwhan said. *Smiles* At least I had a reason to play with file: for a bit.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://505424]
[mz2255]: Yes, just edited the scratchpad. Not sure if I'm doing something wrong, it's my first time.
[ambrus]: No, you're not doing anything wrong. It's just that our automatic spam filters confuse you with the spammers who post advertisments for online shops of counterfeit branded clothing.
[ambrus]: Or unless you left the title field empty or entered a very short title for the node, but then you'd get a message saying that.
[ambrus]: I hope Corion or some other admin is here and can check the logs to see what the problem is.
[mz2255]: I wish I had an online shop but sadly no. The title field definitly wasn't short, had a perl module in the title with 5-6 additional words.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-10-19 15:32 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (255 votes). Check out past polls.