/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/the.py

  • Committer: Tim Marston
  • Date: 2014-03-08 00:47:23 UTC
  • Revision ID: tim@ed.am-20140308004723-hkl3s2hobsblf72o
added diff command; moved all command to commands subdir; made stage-revert
handle ongoing deployment automatically (now that initial revno is known); made
verbose level incremental; detect obstructing conflicts in ConflictWalker;
handle files deleted from repo during copy-out (update)

Show diffs side-by-side

added added

removed removed

32
32
# main repo
33
33
repo = None
34
34
 
35
 
# verbose?
 
35
# verbose level
36
36
verbose = 0
37
37
 
38
38
# data directory
47
47
# fully qualified metadata directory
48
48
full_mddir = util.canonicalise_path( mddir )
49
49
 
50
 
# filesystem directory
51
 
fsdir = '~/test-stdhome'
 
50
# home directory
 
51
home_dir = '~/'
52
52
 
53
 
# fully qualified filesystem directory
54
 
full_fsdir = util.canonicalise_path( fsdir )
 
53
# fully qualified home directory
 
54
full_home_dir = util.canonicalise_path( home_dir )
55
55
 
56
56
 
57
57
def set_repo( repo_name ):
58
58
        global repo
59
59
        from repo import Repo
60
 
        repo = Repo( repo_name if repo_name else 'test' )
 
60
        if repo is not None:
 
61
                raise RuntimeError( 'logic error: the.repo is already set' )
 
62
        repo = Repo( repo_name if repo_name else 'home' )
61
63