Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/manager.py @ 7:d3b22d086934
comments for what to do next
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 06 Apr 2010 10:46:16 -0700 |
parents | 2a3f5cdfd60c |
children | 7205cb6f5530 |
comparison
equal
deleted
inserted
replaced
6:2a3f5cdfd60c | 7:d3b22d086934 |
---|---|
45 def clone(self, source, dest): | 45 def clone(self, source, dest): |
46 """ | 46 """ |
47 clones the profile `source` and output to `dest` | 47 clones the profile `source` and output to `dest` |
48 """ | 48 """ |
49 source_path = self.path(source) # fs path of the `from` profile | 49 source_path = self.path(source) # fs path of the `from` profile |
50 | |
50 dest_path = self.path(dest) # fs path to back up to | 51 dest_path = self.path(dest) # fs path to back up to |
51 shutil.copytree(src_path, backup, symlinks=False) | 52 # TODO: prepend a hash key |
53 | |
54 shutil.copytree(source_path, dest_path, symlinks=False) | |
55 | |
56 # update profiles.ini | |
57 # TODO | |
52 | 58 |
53 | 59 |
54 def backup(self, profile, dest=None): | 60 def backup(self, profile, dest=None): |
55 """ | 61 """ |
56 backup the profile | 62 backup the profile |