summaryrefslogtreecommitdiffstats
path: root/modules/darcs.py
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-08 15:27:45 -0500
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-08 15:27:45 -0500
commit3bcae770792afe5d5fff2af127cad2c1d0d59d57 (patch)
treeb89e5835589ebd222d42c46943e38452f9faa6c6 /modules/darcs.py
parent84211749a73cbff248192519c0f458806b1fb065 (diff)
downloadfedora-devshell-3bcae770792afe5d5fff2af127cad2c1d0d59d57.tar.gz
fedora-devshell-3bcae770792afe5d5fff2af127cad2c1d0d59d57.tar.xz
fedora-devshell-3bcae770792afe5d5fff2af127cad2c1d0d59d57.zip
Got rid of non absolute _dir properties.
In effect, anything that ends in dir shoud usually return an absolute path. The absolute path is dynamically determined using utility functions based on the load time settings of a directory object. This both reduces the number of path ambiguities based on the cwd, and yet removes as many absolute paths from config files, so directory objects can be shared between workspaces and developers.
Diffstat (limited to 'modules/darcs.py')
-rw-r--r--modules/darcs.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/darcs.py b/modules/darcs.py
index 0921d3c..dddaee2 100644
--- a/modules/darcs.py
+++ b/modules/darcs.py
@@ -44,7 +44,7 @@ class Darcs(RevisionControl):
def hackage_name(self):
return self.cfg['hackage_name']
- def source_dir(self, *args):
+ def source(self, *args):
return self.cfg['source']
@contextmanager
@@ -109,6 +109,12 @@ class Darcs(RevisionControl):
def hash(self):
return self.cfg['head'][0]
+ def print_date(self):
+ log.info('The timestamp is ' + self.date)
+
+ def print_hash(self):
+ log.info('The hash is ' + self.hash)
+
def set_cur_to_patch(self, hash):
self.set_cur_to('--to-match', 'hash ' + hash)