Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • mod_dav_svn refactoring proposal

    5 answers - 800 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    I'm taking a look at mod_dav_svn, and realizing that a *lot* of the code
    is focussed on either:
    (a) implementing various mod_dav vtables
    (b) sending a particular kind of custom report
    I have an inclination to refactor the source into the following layout:
    subversion/
    mod_dav_svn/
    reports/
    update.c
    log.c
    dated-rev.c
    get-locations.c
    file-revs.c
    get-locks.c
    replay.c
    dav_hooks/
    repository.c
    propdb.c
    liveprop.c
    vsn.c
    locks.c
    <other stuff>
    i.e. one file per report, one file per dav_hooks category vtable.
    +1s? -1s? passing comments?
    Thanks,
    Max.
    PGP SIGNATURE
    Version: GnuPG v1.4.2.1 (Cygwin)
    jwSZQSqDd77bfbJ6PUizzrE=
    =kfQm
    PGP SIGNATURE
  • No.1 | | 447 bytes | |

    Max Bowsher wrote:
    I'm taking a look at mod_dav_svn, and realizing that a *lot* of the code
    is focussed on either:

    (a) implementing various mod_dav vtables
    (b) sending a particular kind of custom report

    I have an inclination to refactor the source into the following layout:

    Does this inclination stem from a particular problem you ran into while
    trying to modify mod_dav_svn, or are you just in Tidy-up Mode?
  • No.2 | | 526 bytes | |

    Thu, Jul 27, 2006 at 11:59:30PM +0100, Max Bowsher wrote:
    i.e. one file per report, one file per dav_hooks category vtable.

    +1s? -1s? passing comments?

    Anything you can do to make mod_dav_svn easier to understand would
    be great. I've always found it rally hard to work out what's going
    on myself.

    Regards,
    Malcolm

    To unsubscribe, e-mail: dev-unsubscribe (AT) subversion (DOT) tigris.org
    For additional commands, e-mail: dev-help (AT) subversion (DOT) tigris.org
  • No.3 | | 1589 bytes | |

    C. Michael Pilato wrote:
    Max Bowsher wrote:
    >I'm taking a look at mod_dav_svn, and realizing that a *lot* of the code
    >is focussed on either:
    >>

    >(a) implementing various mod_dav vtables
    >(b) sending a particular kind of custom report
    >>
    >>

    >I have an inclination to refactor the source into the following layout:


    Does this inclination stem from a particular problem you ran into while
    trying to modify mod_dav_svn, or are you just in Tidy-up Mode?

    I've found that some of mod_dav_svn's .c files incorporate code that has
    little to do with the name of the file - i.e. prime candidates for
    splitting chunks of code out into new files.

    Rather than pick names for the new files on an ad-hoc basis, the above
    schema would help in selecting new names.

    Also, many of the files relate to an mod_dav concept, yet are named not
    after that concept, but after an abbreviation, expansion, or loosely
    related word.

    , I'd like the file layout to reflect an overall logical
    structure, so that a newcomer to the code can quickly understand it, and
    then proceed to fill in their knowledge about specific subtopics, rather
    than needing study the entire body of code to understand the structure
    of how the different source files plug together.

    Max.

    PGP SIGNATURE
    Version: GnuPG v1.4.2.1 (Cygwin)

    wZ6U22wVgz3TMfb6/EvefgU=
    =eK+9
    PGP SIGNATURE
  • No.4 | | 679 bytes | |

    Max Bowsher wrote:
    C. Michael Pilato wrote:

    >>Max Bowsher wrote:

    I have an inclination to refactor the source into the following layout:
    >>
    >>Does this inclination stem from a particular problem you ran into while
    >>trying to modify mod_dav_svn, or are you just in Tidy-up Mode?


    I've found that some of mod_dav_svn's .c files incorporate code that has
    []
    of how the different source files plug together.

    Translation: you're in Tidy-up Mode. :-)

    (+1 on improving the structure, though.)
  • No.5 | | 665 bytes | |

    Fri, 28 Jul 2006 15:39:24 +0530, Max Bowsher <maxb1 (AT) ukf (DOT) netwrote:

    Max Bowsher wrote:

    , I'd like the file layout to reflect an overall logical
    structure, so that a newcomer to the code can quickly understand it, and
    then proceed to fill in their knowledge about specific subtopics, rather
    than needing study the entire body of code to understand the structure
    of how the different source files plug together.

    FWIW, +1.

    Regards,
    Madan.

    To unsubscribe, e-mail: dev-unsubscribe (AT) subversion (DOT) tigris.org
    For additional commands, e-mail: dev-help (AT) subversion (DOT) tigris.org

Re: mod_dav_svn refactoring proposal


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Development"

EMSDN.COM