[jhbuild] Add optional branch attributes to snapshot



commit e7df839dcffbe1ca06153e56c3042b00fff419a1
Author: Dirk Wallenstein <halsmit t-online de>
Date:   Wed Jun 30 13:06:43 2010 +0200

    Add optional branch attributes to snapshot
    
    Most importantly this adds the 'checkoutdir' attribute, which is
    necessary to reuse the moduleset snapshot with the originating
    checkoutroot.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=623230

 jhbuild/versioncontrol/git.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/versioncontrol/git.py b/jhbuild/versioncontrol/git.py
index dc26d50..94df87a 100644
--- a/jhbuild/versioncontrol/git.py
+++ b/jhbuild/versioncontrol/git.py
@@ -438,7 +438,11 @@ class GitBranch(Branch):
     def to_sxml(self):
         attrs = {}
         if self.branch:
-            attrs['branch'] = self.branch
+            attrs['revision'] = self.branch
+        if self.checkoutdir:
+            attrs['checkoutdir'] = self.checkoutdir
+        if self.subdir:
+            attrs['subdir'] = self.subdir
         return [sxml.branch(repo=self.repository.name,
                             module=self.module,
                             tag=self.tree_id(),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]