Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

HgFileMerge

Utility to merge multiple files into one.

Usage for config:

$ cat tests/testfiles/conf.yml
base_path: tests/testfiles/test_yml_config_parser/
merge_groups:
    - name: merged_most_popular.css
      files:
      - 1.css
      - 2.css
    - name: merged_site.css
      files:
      - 3.css

is:

>>> from hgfilemerge import HgFileMerge
>>> m = HgFileMerge()
>>> m.configure_from_file('./hgfilemerge/tests/testfiles/conf.yml')
>>> m.save()

This will save file base_path/merged_most_popular.css that is merge of 1.css and 2.css, and file merged_site.css that is basically a 3.css. Simple stupid :-)

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.