Menu

#139 expose global preferences to macros

WinCvs
open
WinCvs (366)
6
2004-01-10
2002-09-10
No

It would be great if stuff like the current CVSROOT or
the HOME directory were somehow accessible (read-only
would suffice) from macros. Otherwise there always has
to be a lot of guesswork or unnecessary user queries in
the macros.

Discussion

  • Jerzy Kaczorowski

    Logged In: YES
    user_id=119527

    Sounds like a good idea.

     
  • n3wjack

    n3wjack - 2003-10-27

    Logged In: YES
    user_id=895838

    this would be handy indeed,
    being able to access the settings for the default editor, or
    what external Diff program is used to automatically trigger
    diffs would be nice

     
  • Graeme

    Graeme - 2003-11-29

    Logged In: YES
    user_id=920074

    Is there any plan to get this done? I would like to find the
    name/location of the user diff tool so it can be run from a
    macro.

     
  • Oliver Giesen

    Oliver Giesen - 2004-01-06

    Logged In: YES
    user_id=158827

    I have finally been successful to get at least at some of
    the global prefs, namely those that are simple strings, e.g.:

    p = Persistent('P_ExtDiff', '', 0)
    print str(p)

    will dump the fully qualified name of the external diff tool
    (other values of potential interest for macro writers
    include P_Viewer, P_Home and P_SSHName - just take a look at
    HKCU\Software\WinCvs\wincvs\CVS settings for more).

    I have however not (yet) been able to get at any of the
    numeric values, like P_ZOption, P_ZLevel or P_QuietOption,
    nor at the entries that contain lists, e.g. P_OldModules.
    For this reason my most sought after value, P_Cvsroot, is
    still useless to me as I cannot sensibly read P_Authen which
    I assume to contain the index of the authentication
    protocol, which is unfortunately not part of P_Cvsroot.

    Anyway, this is a BIG step forward and I will now take a
    deeper look into the source to see whether I might be able
    to get support for numeric and maybe even list-type entries
    as well.

     
  • Jerzy Kaczorowski

    Logged In: YES
    user_id=119527

    Just a reminder that CVSROOT settings as we know it will go
    away and it will simply be a temporary parameter used during
    checkout and such and stored by CVS itself later on.

     
  • Jerzy Kaczorowski

    • priority: 5 --> 6
    • assigned_to: nobody --> jerzyk
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.