Giter Club home page Giter Club logo

svn-export's Introduction

SVN Export

Basically this is to copy out those files that have been committed to a external folder.
It will take from svn log to find out all the files from author that you specify and from revision range that you specify.

Usage

NOTE: Please ensure that your svnexport.py is place inside the project root dir

python svnexport.py -r 30:35 -a jslim89 -d ~/export_dir -b branch/foo -f filename.txt -p file_path_prefix/path/to/file

This example is to show that it will take from:

  • revision 30 to 35
  • the author is jslim89
  • export to ~/export_dir directory
  • the project is from branch named foo
  • it will output to a file named filename.txt in current path which contain the file path of the exported file
  • can add a prefix in front of the file path

This is the sample output

Copied: path/to/source1.py -> /home/jslim89/export_dir/path/to/source1.py
Copied: path/to/source2.py -> /home/jslim89/export_dir/path/to/source2.py
Copied: path/to/source3.py -> /home/jslim89/export_dir/path/to/source3.py

Assumed that the home directory is /home/jslim89/

Options

  • -r or --revision -> Which revision you want to export (Required)
  • -a or --author -> The author who commit the source code (Required)
  • -d or --destination -> The destination where you want to copy to (Required)
  • -b or --branch -> The project is from which branch (NOTE: default is trunk)
  • -f or --filename -> The filename for the output file which contain the exported file path (optional)
  • -p or --file_prefix -> The prefix for the file path for the output file (optional)

Source Code & Download

svn-export's People

Contributors

jslim89 avatar

Stargazers

JingLiang Wen avatar mkqi avatar Li Xin avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.