Login | Register
My pages Projects Community openCollabNet

Discussions > users > fsvs default path

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

Re: fsvs default path

Author pmarek
Full name P.Marek
Date 2010-06-11 08:53:59 PDT
Message Hello Gunnar!


> just a quick question one perhaps easy to solve.
> I want to define a permanent default path in fsvs config or per environment
> which is used when no path is defined on commandline.
>
> The users turn to perform checkins from their home folder
>
> ~$ fsvs ci -m "commit msg"
>
> and forget to define / or destination dir.
>
> I tried something like ~$ FSVS_EXP_WC_ROOT=/ fsvs st
> but this is not the way to go . Either softroot is not suitable for my approach.
> Any idea?
Well, the easiest way should be to put a shell script in a location that is earlier in
$PATH, and if it's given only a single parameter it adds the "/".

If that's not what you want - please take a look at waa__find_common_base2():
    /* Step 0: Special case for *no* arguments. */
        nullp[0]=start_path;

Other potentially interesting functions are waa__find_common_base(),
waa__partial_update(), perhaps even waa__given_or_current_wd().


Regards,

Phil


PS: Did you have any luck with pushing 1.2.2 into debian unstable?

--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

fsvs default path

Author tekknokra
Full name Gunnar Thielebein
Date 2010-06-11 08:22:08 PDT
Message Hi Phil,

just a quick question one perhaps easy to solve.
I want to define a permanent default path in fsvs config or per environment
which is used when no path is defined on commandline.

The users turn to perform checkins from their home folder

~$ fsvs ci -m "commit msg"

and forget to define / or destination dir.

I tried something like ~$ FSVS_EXP_WC_ROOT=/ fsvs st
but this is not the way to go . Either softroot is not suitable for my approach.
Any idea?

Gunnar
Messages per page: