Package conary :: Module checkin
[hide private]
[frames] | no frames]

Module checkin

source code

Actions on source components. This includes creating new packages; checking in changes; checking out the latest version; displaying logs and diffs; creating new packages; adding, removing, and renaming files; and committing changes back to the repository.

Classes [hide private]
  CheckinCallback
  UpdateSpec
  CheckoutSpec
  CheckoutExploder
Functions [hide private]
 
makePathId() source code
 
_verifyAtHead(repos, headPkg, state) source code
 
_makeFilter(patterns) source code
 
verifyAbsoluteChangesetSignatures(cs, callback) source code
 
checkout(repos, cfg, workDir, nameList, callback=None) source code
 
_checkout(repos, cfg, workDirArg, trvList, callback) source code
 
commit(repos, cfg, message, callback=None, test=False, force=False) source code
 
annotate(repos, filename) source code
 
_describeShadow(oldVersion, newVersion) source code
 
findRelativeVersion(repos, troveName, count, newV) source code
 
rdiff(repos, buildLabel, troveName, oldVersion, newVersion) source code
 
revert(repos, fileList) source code
 
diff(repos, versionStr=None) source code
 
_showChangeSet(repos, changeSet, oldTrove, newTrove, displayAutoSourceFiles=True) source code
 
updateSrc(repos, versionList=None, callback=None) source code
 
_determineRootVersion(repos, state) source code
 
merge(cfg, repos, versionSpec=None, callback=None) source code
 
markRemoved(cfg, repos, troveSpec) source code
 
addFiles(fileList, ignoreExisting=False, text=False, binary=False, repos=None, defaultToText=True) source code
 
removeFile(filename, repos=None) source code
 
newTrove(repos, cfg, name, dir=None, template=None, buildBranch=None, factory=None) source code
 
renameFile(oldName, newName, repos=None) source code
 
showLog(repos, branch=None, newer=False) source code
 
iterLog(repos, branch=None, newer=False, dirName='.')
Iterator that yeilds log message lines relative to the source checkout in the current directory.
source code
 
iterLogMessages(troves) source code
 
showOneLog(version, changeLog='') source code
 
formatOneLog(version, changeLog='') source code
 
setContext(cfg, contextName=None, ask=False, repos=None) source code
 
setFileFlags(repos, paths, text=False, binary=False) source code
 
refresh(repos, cfg, refreshPatterns=[], callback=None) source code
list
generateStatus(repos, dirName='.')
Create summary of changes regarding all files in a directory (the current directory by default) as a list of (status, filename) tuples where status is a single character describing the status of the file filename:
source code
 
_showStat(results)
print out status lists as returned by generateStatus
source code
 
stat_(repos) source code
 
localAutoSourceChanges(oldTrove, (changeSet, ((isDifferent, newState),))) source code
 
factory(newFactory=None) source code
Variables [hide private]
  nonCfgRe = re.compile(r'^.*\.(bz2|ccs|data|eps|gif|gz|ico|img|...
  cfgRe = re.compile(r'(^.*\.(([123456789])|c|cfg|cnf|conf|CONFI...
Function Details [hide private]

iterLog(repos, branch=None, newer=False, dirName='.')

source code 
Iterator that yeilds log message lines relative to the source checkout in the current directory. If branch is specified, that branch of the package is used instead as a source of log messages. Alternatively, if newer is set, then only log messages newer than the current version in the source checkout are yeilded. The branch and newer keyword arguments may not both be set, because cross-branch comparisons do not have a concept of "newer".

generateStatus(repos, dirName='.')

source code 
Create summary of changes regarding all files in a directory (the current directory by default) as a list of (status, filename) tuples where status is a single character describing the status of the file filename:
  • ?: File not managed by Conary
  • A: File added since last commit (or since package created if no commit)
  • M: File modified since last commit
  • R: File removed since last commit
Returns: list

Variables Details [hide private]

nonCfgRe

Value:
re.compile(r'^.*\.(bz2|ccs|data|eps|gif|gz|ico|img|jar|jpeg|jpg|lss|pd\
f|png|ps|rpm|run|tar|tbz|tbz2|tgz|tiff|ttf|zip)$')

cfgRe

Value:
re.compile(r'(^.*\.(([123456789])|c|cfg|cnf|conf|CONFIG.*|console.*|cr\
on.*|(c|)sh|css|desktop|diff|h|html|init|kid|logrotate|pam(d|)|patch|p\
l|py|recipe|sysconfig|tag(handler|description)|tmpwatch|txt)|(^|/)(Mak\
efile(|\..*)))$')