2078 |
/* and lock it */ |
/* and lock it */ |
2079 |
if (lock_RCS (file, rcs, rev, repository)) |
if (lock_RCS (file, rcs, rev, repository)) |
2080 |
{ |
{ |
2081 |
error (0, 0, "cannot lock `%s'.", rcs->path); |
error (0, 0, "cannot lock revision %s in `%s'.", |
2082 |
|
rev ? rev : tag ? tag : "HEAD", rcs->path); |
2083 |
if (rev != NULL) |
if (rev != NULL) |
2084 |
free (rev); |
free (rev); |
2085 |
goto out; |
goto out; |
2145 |
/* and lock it once again. */ |
/* and lock it once again. */ |
2146 |
if (lock_RCS (file, rcs, NULL, repository)) |
if (lock_RCS (file, rcs, NULL, repository)) |
2147 |
{ |
{ |
2148 |
error (0, 0, "cannot lock `%s'.", rcs->path); |
error (0, 0, "cannot lock initial revision in `%s'.", |
2149 |
|
rcs->path); |
2150 |
goto out; |
goto out; |
2151 |
} |
} |
2152 |
} |
} |
2259 |
/* lock the branch. (stubbed branches need not be locked.) */ |
/* lock the branch. (stubbed branches need not be locked.) */ |
2260 |
if (lock_RCS (file, rcs, NULL, repository)) |
if (lock_RCS (file, rcs, NULL, repository)) |
2261 |
{ |
{ |
2262 |
error (0, 0, "cannot lock `%s'.", rcs->path); |
error (0, 0, "cannot lock head revision in `%s'.", rcs->path); |
2263 |
goto out; |
goto out; |
2264 |
} |
} |
2265 |
} |
} |