shilow / boar

Automatically exported from code.google.com/p/boar
https://bitbucket.org/mats_ekberg/boar/wiki/Home
0 stars 0 forks source link

Cannot checkout a directory with spaces in its name #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Import a directory with spaces in its name, e.g
boar import "a directory" "session/a directory"

where session is the session's name 

2. Checkout the directory 
boar co "session/a directory"

 supposed repo option was set correctly.

What is the expected output? What do you see instead?
It should create a new directory "session/a directory"

Instead it output: 
AssertionError: Offset was: a Path was: a directory/....

seems that it failed on the first file. 

What platform are you using? (Windows XP, Windows 7, Linux, ...)
Ubuntu 9.04

What version of Python are you using?
2.6.2

What version of boar are you using? (Mercurial change id or daily build
date)
boardaily 27-feb-2011

Please provide any additional information below.
If I tried

boar import "a directory" "session/a directory" a_dir_name

it output: ERROR: too many arguments

Original issue reported on code.google.com by uts...@gmail.com on 2 Mar 2011 at 6:22

GoogleCodeExporter commented 8 years ago
I have not been able to reproduce the problem given your report. I have 
attached my attempt at reproduction as a script file ("issue6.sh"). It would be 
very helpful if you could try it out. If it works, please change it until it 
doesn't, and then post it here.

Regarding your last problem, import giving "ERROR: too many arguments": The 
'import' command does currently only accept two arguments, the directory to 
import and where to put it in your repository. If you'd like it to accept more 
arguments, please clarify how you'd expect it to work.

Original comment by ekb...@gmail.com on 3 Mar 2011 at 9:56

Attachments:

GoogleCodeExporter commented 8 years ago
Nevermind, it was due to me using a shellscript 
. boar.sh --repo .....

instead if I use

python boar --repo ...

Then it's fine.

Original comment by uts...@gmail.com on 4 Mar 2011 at 6:14

GoogleCodeExporter commented 8 years ago
Invalid - the best kind of bug!

Original comment by ekb...@gmail.com on 4 Mar 2011 at 11:21