Commits

Michał Górny committed 3654beb

Include branch in str(vcs).

  • Participants
  • Parent commits f3d7bed

Comments (0)

Files changed (2)

smartliverebuild/vcs/cvs.py

 		return '%s/%s' % (self.env['ECVS_TOP_DIR'], self.env['ECVS_LOCALNAME'] or self.env['ECVS_MODULE'])
 
 	def __str__(self):
-		return '%s (%s)' % (self.env['ECVS_SERVER'], self.env['ECVS_MODULE'])
+		return '%s %s [%s]' % (self.env['ECVS_SERVER'], self.env['ECVS_MODULE'],
+				self.env['ECVS_BRANCH'])
 
 	@property
 	def savedrev(self):

smartliverebuild/vcs/git_2.py

 		self.repo_uris = self.env['EGIT_REPO_URI'].split()
 
 	def __str__(self):
-		return self.repo_uris[0]
+		return '%s [%s]' % (self.repo_uris[0], self.env['EGIT_BRANCH'])
 
 	def parseoutput(self, out):
 		return out.split()[0]