Show More
@@ -420,15 +420,16 b' def dorecord(ui, repo, commitfunc, *pats' | |||||
420 | def recordfunc(ui, repo, message, match, opts): |
|
420 | def recordfunc(ui, repo, message, match, opts): | |
421 | """This is generic record driver. |
|
421 | """This is generic record driver. | |
422 |
|
422 | |||
423 |
Its job is to interactively filter local changes, and |
|
423 | Its job is to interactively filter local changes, and | |
424 |
prepare working dir into a state |
|
424 | accordingly prepare working directory into a state in which the | |
425 |
non-interactive commit command such as |
|
425 | job can be delegated to a non-interactive commit command such as | |
|
426 | 'commit' or 'qrefresh'. | |||
426 |
|
427 | |||
427 |
After the actual job is done by non-interactive command, |
|
428 | After the actual job is done by non-interactive command, the | |
428 |
|
|
429 | working directory is restored to its original state. | |
429 |
|
430 | |||
430 |
In the end we'll record interesting changes, and everything else |
|
431 | In the end we'll record interesting changes, and everything else | |
431 |
left in place, so the user can continue |
|
432 | will be left in place, so the user can continue working. | |
432 | """ |
|
433 | """ | |
433 |
|
434 | |||
434 | merge = len(repo[None].parents()) > 1 |
|
435 | merge = len(repo[None].parents()) > 1 | |
@@ -508,11 +509,13 b' def dorecord(ui, repo, commitfunc, *pats' | |||||
508 | raise util.Abort(str(err)) |
|
509 | raise util.Abort(str(err)) | |
509 | del fp |
|
510 | del fp | |
510 |
|
511 | |||
511 |
# 4. We prepared working directory according to filtered |
|
512 | # 4. We prepared working directory according to filtered | |
512 |
# Now is the time to delegate the job to |
|
513 | # patch. Now is the time to delegate the job to | |
|
514 | # commit/qrefresh or the like! | |||
513 |
|
515 | |||
514 |
# it is important to first chdir to repo root -- we'll call |
|
516 | # it is important to first chdir to repo root -- we'll call | |
515 |
# highlevel command with list of pathnames relative to |
|
517 | # a highlevel command with list of pathnames relative to | |
|
518 | # repo root | |||
516 | cwd = os.getcwd() |
|
519 | cwd = os.getcwd() | |
517 | os.chdir(repo.root) |
|
520 | os.chdir(repo.root) | |
518 | try: |
|
521 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now