Skip to content

Config format #360

Open
Open
@tony

Description

@tony

Eliminate shorthands

<folder>:
  <repoName>: '<repoUrl>'
  • This would need to be a 2.0.0 thing
  • 2.0 could be released today if I wanted to, but we'd end up having versions like Firefox or Chrome does. Eventually we'd end up at vcspull 42.0.1

One config format

  • Future-proof: Has to work with all theoretically all vcs and copying systems: git, svn, hg, scp, rsync, http, whatever
  • Work immediately out of the box, focus on code clarity:
    • Pass into
      GitRepo(path=pathlib.Path('~/work') / pathlib.Path('libtmux'), **options)
      SVNRepo(path=pathlib.Path('~/work') / pathlib.Path('MySVNProject'), **options)
  • Make config file mutations like Feature request: command to add new repository #333 easier
~/work/:
  libtmux:
    vcs: 'git'
    options:
      origin: 
        url: 'https://github.com/vcs-python/vcspull.git'
  libtmux_mirrored_remotes:
    vcs: 'git'
    options:
      origin: 
        fetch: 'https://github.com/vcs-python/vcspull.git'
        push: 'git+ssh//git@github.com/vcs-python/vcspull.git'
  MySVNProject:
    vcs: 'svn'
    options:
      url: http://unladen-swallow.googlecode.com/svn/trunk/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions