Bunch of small functions doing for useful stuff for flmake
Returns the version information for a stable FLASH release.
Gets the version control information of a directory. Returns either an empty tuple when no repo is found or a 3-tuple of (repo-type, branch, version) when it is.
Diffs a release directory with the clean version of the release dir.
Makes diff of the version controlled directory.
Applies a patch to a version controlled directory.
Checks out out a copy of the git repo at info point in history in the base directory.
Checks out out a copy of the hg repo at info point in history in the base directory.
Checks out out a copy of the svn repo at info point in history in the base directory.
Checks out out a copy of the repo at info point in history in the base directory.
Checks out out a copy of the source repo at info point in history in the base directory.
Searches the paths for a file (or directory).
Parameters : | paths : list of str
file_or_dir : str
|
---|---|
Returns : | fullpath : str
|
Gathers desc metadata common to all flmake commands.
Converts a list of hashes to a recursive dictionary.
Converts a hash dictionary to a str. Nice for printing.
Return the relative path to FILENAME from basedir
Takes a pattern (absolute or relative to current directory) and returns a list of directories matching pattern. The match is made case-insensitive
Determines whether case is strictly significant in filenames
Adds optional arguments (ie those that start with parser.prefix_chars) to the parser. The parser must be an instance of the argparse.ArgumentParser and opts should be a list of arguments. Positional arguments (those that do not start with parser.prefix_chars) and optional argument values are ignored by this function.