Changeset 1163 in tailor for vcpx/git.py
- Timestamp:
- 06/13/06 02:18:14 (7 years ago)
- Hash name:
- 20060613001814-97f81-ff228ae22d7af019cda76bacfd4d86521ed20935
- File:
-
- 1 edited
-
vcpx/git.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/git.py
r1162 r1163 126 126 entries.append(e) 127 127 128 # Brute-force tag search129 from os.path import join, isdir 130 from os import listdir131 132 tags = []133 tagdir = join(self.basedir, '.git', 'refs', 'tags')134 try:128 # Brute-force tag search 129 from os.path import join 130 from os import listdir 131 132 tags = [] 133 tagdir = join(self.basedir, '.git', 'refs', 'tags') 134 try: 135 135 for tag in listdir(tagdir): 136 136 # Consider caching stat info per tailor run … … 138 138 if (tagrev == revision): 139 139 tags.append(tag) 140 except OSError:141 # No tag dir142 pass140 except OSError: 141 # No tag dir 142 pass 143 143 144 144 return Changeset(revision, date, user, message, entries, tags=tags) … … 238 238 (out, _) = c.execute(stdout=PIPE, env=env, input=logmessage) 239 239 if c.exit_status: 240 failed = True241 if out:242 for line in [x.strip() for x in out if x[0] != '#']:243 if line == 'nothing to commit':244 failed = False245 if failed:240 failed = True 241 if out: 242 for line in [x.strip() for x in out if x[0] != '#']: 243 if line == 'nothing to commit': 244 failed = False 245 if failed: 246 246 raise ChangesetApplicationFailure("%s returned status %d" % 247 247 (str(c), c.exit_status))
Note: See TracChangeset
for help on using the changeset viewer.
