version 1.95, 2006/04/10 08:08:00 |
version 1.96, 2006/04/11 08:07:35 |
|
|
/* Make sure revision exists. */ |
/* Make sure revision exists. */ |
if (rcs_findrev(file, rev) == NULL) |
if (rcs_findrev(file, rev) == NULL) |
fatal("revision does not exist"); |
fatal("revision does not exist"); |
if (rcs_lock_add(file, username, rev) == -1) { |
if (rcs_lock_add(file, username, rev) == -1) |
rcs_close(file); |
|
fatal("unable to lock file"); |
fatal("unable to lock file"); |
} |
|
rcsnum_free(rev); |
rcsnum_free(rev); |
} |
} |
|
|
|
|
/* Make sure revision exists. */ |
/* Make sure revision exists. */ |
if (rcs_findrev(file, rev) == NULL) |
if (rcs_findrev(file, rev) == NULL) |
fatal("revision does not exist"); |
fatal("revision does not exist"); |
if (rcs_lock_remove(file, username, rev) == -1) { |
if (rcs_lock_remove(file, username, rev) == -1) |
rcs_close(file); |
|
fatal("unable to unlock file"); |
fatal("unable to unlock file"); |
} |
|
rcsnum_free(rev); |
rcsnum_free(rev); |
} |
} |
|
|