Changeset 432 in tailor for vcpx/svn.py
- Timestamp:
- 07/26/05 02:38:42 (8 years ago)
- Hash name:
- 20050726003842-97f81-c9f855d2bc58a0b814c3c8c35e3d18191e556636
- File:
-
- 1 edited
-
vcpx/svn.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/svn.py
r429 r432 239 239 240 240 from os.path import join, exists 241 241 242 if revision == 'INITIAL': 243 initial = True 244 cmd = [SVN_CMD, "log", "--verbose", "--xml", "--limit", "1", 245 "--revision", "1:HEAD"] 246 svnlog = ExternalCommand(cwd=wdir, command=cmd) 247 output = svnlog.execute("%s%s" % (repository, module), stdout=PIPE) 248 249 if svnlog.exit_status: 250 raise ChangesetApplicationFailure( 251 "%s returned status %d saying \"%s\"" % 252 (str(changes), changes.exit_status, output.read())) 253 254 csets = changesets_from_svnlog(output, info['URL'], repository, 255 module) 256 revision = escape(csets[0].revision) 257 else: 258 initial = False 259 242 260 wdir = join(basedir, subdir) 243 244 261 if not exists(join(wdir, '.svn')): 245 262 if logger: logger.info("checking out a working copy") … … 253 270 if logger: logger.info("%s already exists, assuming it's a svn working dir" % wdir) 254 271 255 info = self.__getSvnInfo(wdir) 256 257 cmd = [SVN_CMD, "log", "--verbose", "--xml", "--revision", revision] 258 svnlog = ExternalCommand(cwd=wdir, command=cmd) 259 output = svnlog.execute(stdout=PIPE) 260 261 if svnlog.exit_status: 262 raise ChangesetApplicationFailure( 263 "%s returned status %d saying \"%s\"" % 264 (str(changes), changes.exit_status, output.read())) 265 266 csets = changesets_from_svnlog(output, info['URL'], repository, module) 267 272 if not initial: 273 info = self.__getSvnInfo(wdir) 274 275 cmd = [SVN_CMD, "log", "--verbose", "--xml", "--revision", revision] 276 svnlog = ExternalCommand(cwd=wdir, command=cmd) 277 output = svnlog.execute(stdout=PIPE) 278 279 if svnlog.exit_status: 280 raise ChangesetApplicationFailure( 281 "%s returned status %d saying \"%s\"" % 282 (str(changes), changes.exit_status, output.read())) 283 284 csets = changesets_from_svnlog(output, info['URL'], repository, 285 module) 286 268 287 last = csets[0] 269 288
Note: See TracChangeset
for help on using the changeset viewer.
