<commit_before># Tizen repo

This is a git-repo wrapper to manage tizen platform source codes on your host more easily.

http://download.tizen.org/snapshots/tizen/unified/latest/builddata/manifest/ provides you repo manifest xmls on website, but if you want to clone source codes with git-repo tools and that manifest then the xml file has to be located in git repository. ('repo init' requires git uri with -u option.)

This wrapper will generate temporary git automatically and update manifest.xml. You just need to pass a few arguments (tizen snapshot version, regex for filtering projects, etc) then trepo tool initialze proper repo workspace.

# How to build and install

Build sources with debuild.

    sudo apt-get install devscripts debhelper python3-setuptools python3-yaml python3-requests python3-bs4
    git clone https://github.com/dhs-shine/trepo
    cd trepo
    debuild
   
Install dependencies and trepo deb package with dpkg.

    cd ..
    sudo dpkg -i trepo_0.1_all.deb

# How to install trepo from launchpad ppa (Recommend)

    sudo add-apt-repository ppa:tizen.org/pdk
    sudo apt-get update
    sudo apt-get install trepo

# How to use

### Get a list of tizen snapshots

You can get a list of available snapshots with 'snapshots' subcommand.

    trepo snapshots

Output:

    20170524.4
    20170524.3
    20170524.2
    20170524.1
    20170523.3
    20170523.2
    20170523.1
    20170522.2
    20170522.1
    20170520.1
    ...

### Initialize trepo workspace

Let's initialize trepo workspace on new directory with 'init' subcommand.

    mkdir test
    cd test
    trepo init

You can get trepo workspace information with 'info' subcommand.

    trepo info -l

Output:

    tizen repo snapshot version: tizen-unified_20170524.4
    tizen repo target type: standard
    tizen repo project names (982 projects):
      apps/native/bluetooth-share-ui
      apps/native/boot-animation
      apps/native/menu-screen
      apps/native/starter
      apps/native/thing-toggler
      apps/native/ug-bluetooth-efl
      apps/native/ug-mobile-ap
      apps/native/ug-nfc-efl
      apps/native/ug-wifi-direct
      apps/native/ug-wifi-efl
      apps/native/volume-app
      apps/web/download-manager
      platform/adaptation/ap_samsung/libexynos-common
    ...



Example) You can reinitilize your trepo workspace whenever you want. Let's reinitialize trepo workspace based on 20170524.1, includes 'kernel' string in project name but do not include 'u-boot' string.

    trepo init -s 20170524.1 -r 'kernel' -i 'u-boot'
    trepo info -l
<commit_msg>Fix typo<commit_after># Tizen repo

This is a git-repo wrapper to manage tizen platform source codes on your host more easily.

http://download.tizen.org/snapshots/tizen/unified/latest/builddata/manifest/ provides you repo manifest xmls on website, but if you want to clone source codes with git-repo tools and that manifest then the xml file has to be located in git repository. ('repo init' requires git uri with -u option.)

This wrapper will generate temporary git automatically and update manifest.xml. You just need to pass a few arguments (tizen snapshot version, regex for filtering projects, etc) then trepo tool initialize proper repo workspace.

# How to build and install

Build sources with debuild.

    sudo apt-get install devscripts debhelper python3-setuptools python3-yaml python3-requests python3-bs4
    git clone https://github.com/dhs-shine/trepo
    cd trepo
    debuild
   
Install dependencies and trepo deb package with dpkg.

    cd ..
    sudo dpkg -i trepo_0.1_all.deb

# How to install trepo from launchpad ppa (Recommend)

    sudo add-apt-repository ppa:tizen.org/pdk
    sudo apt-get update
    sudo apt-get install trepo

# How to use

### Get a list of tizen snapshots

You can get a list of available snapshots with 'snapshots' subcommand.

    trepo snapshots

Output:

    20170524.4
    20170524.3
    20170524.2
    20170524.1
    20170523.3
    20170523.2
    20170523.1
    20170522.2
    20170522.1
    20170520.1
    ...

### Initialize trepo workspace

Let's initialize trepo workspace on new directory with 'init' subcommand.

    mkdir test
    cd test
    trepo init

You can get trepo workspace information with 'info' subcommand.

    trepo info -l

Output:

    tizen repo snapshot version: tizen-unified_20170524.4
    tizen repo target type: standard
    tizen repo project names (982 projects):
      apps/native/bluetooth-share-ui
      apps/native/boot-animation
      apps/native/menu-screen
      apps/native/starter
      apps/native/thing-toggler
      apps/native/ug-bluetooth-efl
      apps/native/ug-mobile-ap
      apps/native/ug-nfc-efl
      apps/native/ug-wifi-direct
      apps/native/ug-wifi-efl
      apps/native/volume-app
      apps/web/download-manager
      platform/adaptation/ap_samsung/libexynos-common
    ...



Example) You can reinitialize your trepo workspace whenever you want. Let's reinitialize trepo workspace based on 20170524.1, includes 'kernel' string in project name but do not include 'u-boot' string.

    trepo init -s 20170524.1 -r 'kernel' -i 'u-boot'
    trepo info -l

{'fraction_non_alphanumeric': 0.06735448705470119, 'fraction_numerical': 0.04944520147946272, 'mean_word_length': 2.989130434782609, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2415028', 'n_tokens_mistral': 1730, 'n_tokens_neox': 1543, 'n_words': 565}