summaryrefslogtreecommitdiff
path: root/morphlib/source.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/source.py')
-rw-r--r--morphlib/source.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/morphlib/source.py b/morphlib/source.py
index 33549df4..cfcd320b 100644
--- a/morphlib/source.py
+++ b/morphlib/source.py
@@ -24,6 +24,7 @@ class Source(object):
Has the following properties:
* ``repo`` -- the git repository which contains the source
+ * ``original_ref`` -- the git ref provided by the user or a morphology
* ``sha1`` -- the absolute git commit id for the revision we use
* ``morphology`` -- the in-memory representation of the morphology we use
* ``filename`` -- basename of the morphology filename
@@ -35,9 +36,10 @@ class Source(object):
'''
- def __init__(self, repo, sha1, morphology, filename):
+ def __init__(self, repo, original_ref, sha1, morphology, filename):
assert type(morphology) == morphlib.morph2.Morphology
self.repo = repo
+ self.original_ref = original_ref
self.sha1 = sha1
self.morphology = morphology
self.filename = filename